@Test
public void testProcessByIdAndDate() throws NotFoundException, ServiceRegistryException {

  String[] mp = createAndAddMediaPackagesSimple(2, 2, 2, Opt.<String>none());
  //Non terminal query, but internal test so we create terminal expectations
  List<Job> jobs = createDateTriggerJob(mp, 2);
  EasyMock.replay(sr);
  for (Job j : jobs) {
    Assert.assertEquals("OK", tsamjp.process(j));
  }
  EasyMock.verify(sr);
}