Iterator<Girl2> iterator = q.withHints("g", "g.boys").entityAwareMode(true).iterate(Girl2.class, Boy.class);
assertTrue(iterator.hasNext());
Girl2 girl0 = iterator.next();
assertNull(girl0.getBoys());
Girl2 girl1 = iterator.next();
assertNotNull(girl1.getBoys());
assertEquals(2, girl1.getBoys().size());
assertTrue(iterator.hasNext());
Girl2 girl3 = iterator.next();
assertNotNull(girl3.getBoys());
assertEquals(1, girl3.getBoys().size());
assertFalse(iterator.hasNext());
}