}
public void testAutoRemoveFromToManyWithManyImplicitToOne() {
EOEditingContext editingContext = ERXEC.newEditingContext();
Company company = Company.createCompany(editingContext, "XYZ");
Employee p1 = (Employee) EOUtilities.createAndInsertInstance(editingContext, Employee.ENTITY_NAME);
Employee p2 = (Employee) EOUtilities.createAndInsertInstance(editingContext, Employee.ENTITY_NAME);
company.addToEmployees(p1);
company.addToEmployees(p2);
company.removeFromEmployees(p1);
assertEquals(null, p1.company());
assertEquals(company, p2.company());
assertEquals(1, company.employees().count());
assertEquals(p2, company.employees().objectAtIndex(0));
}