q.setParameter("key", KeyFactory.keyToString(pojoEntity.getKey()));
startEnd.start();
@SuppressWarnings("unchecked")
List<HasOneToManyJPA> result = (List<HasOneToManyJPA>) q.getResultList();
assertEquals(1, result.size());
HasOneToManyJPA pojo = result.get(0);
assertNotNull(pojo.getBooks());
assertEquals(1, pojo.getBooks().size());
assertEquals("auth", pojo.getBooks().iterator().next().getAuthor());
assertEquals(1, pojo.getBooks().size());
assertNotNull(pojo.getHasKeyPks());
assertEquals(1, pojo.getHasKeyPks().size());
assertEquals("yar", pojo.getHasKeyPks().iterator().next().getStr());
assertNotNull(pojo.getBidirChildren());
assertEquals(1, pojo.getBidirChildren().size());
assertEquals("yap", pojo.getBidirChildren().iterator().next().getChildVal());
assertEquals(pojo, pojo.getBidirChildren().iterator().next().getParent());
startEnd.end();
}