public void testRootEntity() {
EOEditingContext ec = ERXEC.newEditingContext();
// using vertical inheritance
EOGenericRecord eo1 = (EOGenericRecord)EOUtilities.createAndInsertInstance(ec, "EmployeeVI");
assertEquals("Person", ERXEOControlUtilities.rootEntityName(eo1));
assertEquals(EOModelGroup.defaultGroup().entityNamed("Person"), ERXEOControlUtilities.rootEntity(eo1));
// using horizontal inheritance
EOGenericRecord eo2 = (EOGenericRecord)EOUtilities.createAndInsertInstance(ec, "EmployeeHI");
assertEquals("Person", ERXEOControlUtilities.rootEntityName(eo2));
assertEquals(EOModelGroup.defaultGroup().entityNamed("Person"), ERXEOControlUtilities.rootEntity(eo2));
}