.getEntityClassName());
assertEquals("column1", er1.getDiscriminatorColumn());
assertEquals(2, er1.getFieldResults().size());
Iterator<JpaFieldResult> frIt1 = er1.getFieldResults().iterator();
JpaFieldResult fr11 = frIt1.next();
assertEquals("field1", fr11.getName());
assertEquals("column1", fr11.getColumn());
JpaFieldResult fr12 = frIt1.next();
assertEquals("field2", fr12.getName());
assertEquals("column2", fr12.getColumn());
JpaEntityResult er2 = erIt.next();
assertEquals("org.apache.cayenne.jpa.entity.MockEntityY", er2
.getEntityClassName());
assertEquals("column2", er2.getDiscriminatorColumn());
assertEquals(2, er2.getFieldResults().size());
Iterator<JpaFieldResult> frIt2 = er2.getFieldResults().iterator();
JpaFieldResult fr21 = frIt2.next();
assertEquals("field3", fr21.getName());
assertEquals("column3", fr21.getColumn());
JpaFieldResult fr22 = frIt2.next();
assertEquals("field4", fr22.getName());
assertEquals("column4", fr22.getColumn());
assertEquals(2, mapping.getColumnResults().size());
Iterator<JpaColumnResult> crIt = mapping.getColumnResults().iterator();
assertEquals("column-result1", crIt.next().getName());
assertEquals("column-result2", crIt.next().getName());