iswf.persist(epv2);
iswf.bounceSystem();
// when search for object
List<ObjectAdapter> retrievedInstance = getStore().loadInstancesAndAdapt(new PersistenceQueryFindByTitle(epvSpecification, epv2Adapter.titleString()));
// then find
assertEquals(1, retrievedInstance.size());
final ObjectAdapter retrievedAdapter = retrievedInstance.get(0);
assertNotSame(epv2Adapter, retrievedAdapter);
assertEquals(((SimpleEntity)epv2Adapter.getObject()).getName(), ((SimpleEntity)retrievedAdapter.getObject()).getName());
assertEquals(epv2Adapter.getOid(), retrievedAdapter.getOid());
// and when search for some other title
retrievedInstance = getStore().loadInstancesAndAdapt(new PersistenceQueryFindByTitle(epvSpecification, "some other title"));
// then don't find
assertEquals(0, retrievedInstance.size());
}