"select from " + pojoClass.getName() + " where id == key parameters String key");
@SuppressWarnings("unchecked")
List<HasOneToManyJDO> result =
(List<HasOneToManyJDO>) q.execute(KeyFactory.keyToString(pojoEntity.getKey()));
assertEquals(1, result.size());
HasOneToManyJDO pojo = result.get(0);
assertNotNull(pojo.getUnidirChildren());
assertEquals(1, pojo.getUnidirChildren().size());
assertEquals("str", pojo.getUnidirChildren().iterator().next().getStr());
assertEquals("name", pojo.getUnidirChildren().iterator().next().getName());
assertEquals(unidirLevel.clazz, pojo.getUnidirChildren().iterator().next().getClass());
assertEquals(1, pojo.getUnidirChildren().size());
assertNotNull(pojo.getBidirChildren());
assertEquals(1, pojo.getBidirChildren().size());
assertEquals("yap", pojo.getBidirChildren().iterator().next().getChildVal());
assertEquals(pojo, pojo.getBidirChildren().iterator().next().getParent());
assertEquals(bidirClass, pojo.getBidirChildren().iterator().next().getClass());
startEnd.end();
}