results = fetchAll(FirstEntity.ENTITY_NAME);
assertEquals(1, results.count());
assertEquals(row2, results.get(0).secondEntity());
assertEquals(1, row2.firstEntities().count());
results2 = fetchAll(SecondEntity.ENTITY_NAME);
assertEquals(1, results.count());
assertEquals(1, results2.get(0).firstEntities().count());
assertEquals(row1, results2.get(0).firstEntities().get(0));