@Test
public void testGetMediaPackageFromSearch() throws Exception {

  URI searchResultURI = LiveScheduleServiceImplTest.class.getResource("/search-result.xml").toURI();
  SearchResult searchResult = SearchResultImpl.valueOf(searchResultURI.toURL().openStream());
  EasyMock.expect(searchService.getByQuery((SearchQuery) EasyMock.anyObject())).andReturn(searchResult);
  replayServices();
  MediaPackage mp = service.getMediaPackageFromSearch(MP_ID);
  Assert.assertNotNull(mp);
  Assert.assertEquals(MP_ID, mp.getIdentifier().toString());
}