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

  Date start = new Date();
  Date before = new Date();
  String[] mp = createAndAddMediaPackagesSimple(2, 2, 2, Opt.<String>none());
  Date after = new Date();
  //Non terminal query, but internal test so we create terminal expectations
  createIdAndVersionExpectation(mp[1], 0, 2);
  EasyMock.replay(sr);
  Assert.assertEquals("No versions exist between the start and before test values",
          "0", tsamjp.internalMoveByIdAndDate("fake", start, before, REMOTE_STORE_1_ID));
  Assert.assertEquals("Both versions of " + mp[1] + " should move",
          "2", tsamjp.internalMoveByIdAndDate(mp[1], before, after, REMOTE_STORE_1_ID));
  Assert.assertEquals("No versions of " + mp[1] + " should move",
          "0", tsamjp.internalMoveByIdAndDate(mp[1], after, new Date(), REMOTE_STORE_1_ID));
  EasyMock.verify(sr);
}