/** This tests that mutable system class instances track changes
* or notify their owning instance that they are dirty */
public void testMutableSystemClass() {
pm = getPM();
pm.currentTransaction().begin();
Company comp = getPersistentNewInstance(1);
pm.currentTransaction().commit(); // obj should transition to hollow
testHollowInstance(comp);
pm.currentTransaction().begin();
makePersistentCleanInstance(comp);
Set depts = comp.getDepartments();
// comp or depts should transition to persistent-dirty
comp.addDepartment(new Department(0, "HR", comp));
int currComp = currentState(comp);
int currDepts = currentState(depts);
if ((currComp != PERSISTENT_DIRTY) && (currDepts != PERSISTENT_DIRTY)){
fail(ASSERTION_FAILED,
"Unable to create persistent-dirty instance "