@Test
public void testByIdAndVersion() throws ServiceRegistryException {

  String[] mp = createAndAddMediaPackagesSimple(1, 2, 2, Opt.<String>none());
  //This is a terminal query, so we need terminal expectations
  createIdAndVersionExpectation(mp[0], 1, 2);
  EasyMock.replay(sr);
  tsamjp.moveByIdAndVersion(VersionImpl.mk(1L), mp[0], REMOTE_STORE_1_ID);
  EasyMock.verify(sr);
}