// Tests ---------------------------------------------------
public void testStandaloneFKMapping() throws Exception
{
InstituteLocal institute = null;
DepartmentLocal department = null;
try {
institute = getInstituteHome().create("NTUUKPI", "Natinal Technical University Of The Ukraine KPI");
department = getDepartmentHome().create("KV", "Specialized Computer Systems");
institute.getDepartments().add(department);
assertTrue("department.getInstitute().isIdentical(institute)", department.getInstitute().isIdentical(institute));
department.setInstitute(null);
assertTrue("institute.getDepartments().isEmpty()", institute.getDepartments().isEmpty());
} finally {
removeEntity(institute);
removeEntity(department);
}