ManagerImpl man1 = new ManagerImpl("m1");
man1 = (ManagerImpl) this.prevalentSystem.save(man1);
// Create an employee and add it to the manager:
EmployeeImpl emp1 = new EmployeeImpl("a1");
man1.addManagedEmployee(emp1);
// Update the manager and save the employee by cascade:
man1 = (ManagerImpl) this.prevalentSystem.update(man1);
// Verify that the id has been set:
assertNotNull(emp1.getId());