@Test
public void testByDate() throws ServiceRegistryException {

  String[] mp = createAndAddMediaPackagesSimple(1, 2, 2, Opt.<String>none());
  Date start = new Date(-10000L);
  Date end = new Date(new Date().getTime() + 10000L);
  //Non terminal query, non terminal expectations
  createDateExpectation(start, end);
  EasyMock.replay(sr);
  tsamjp.moveByDate(start, end, REMOTE_STORE_1_ID);
  EasyMock.verify(sr);
}