assertEquals(1, query.size());
}
@Test
public void testUpdatingAndRetrievingUpdatedObjects_shouldReturnUpdatedObjects() throws Exception {
persistenceService.create(Lists.newArrayList(new B(), new A()));
List<B> query = persistenceService.query(new B("blub"));
assertEquals(0, query.size());
persistenceService.update(new B(), new B("blub"));
query = persistenceService.query(new B("blub"));
assertEquals(1, query.size());
}