q.setParameter("key", KeyFactory.keyToString(pojoEntity.getKey()));
startEnd.start();
@SuppressWarnings("unchecked")
List<HasOneToOneJPA> result = (List<HasOneToOneJPA>) q.getResultList();
assertEquals(1, result.size());
HasOneToOneJPA pojo = result.get(0);
assertNotNull(pojo.getBook());
assertEquals("auth", pojo.getBook().getAuthor());
assertNotNull(pojo.getHasKeyPK());
assertEquals("yar", pojo.getHasKeyPK().getStr());
assertNotNull(pojo.getHasParent());
assertEquals("yap", pojo.getHasParent().getStr());
assertNotNull(pojo.getHasParentKeyPK());
assertEquals("yag", pojo.getHasParentKeyPK().getStr());
startEnd.end();
}