map.put("openjpa.InverseManager", "true");
OpenJPAEntityManager pm = (OpenJPAEntityManager)
getEmf(map).createEntityManager();
ManagedInverseTestInstance managed = (ManagedInverseTestInstance)
newInstance(pm, ManagedInverseTestInstance.class);
ManagedInverseTestInstance2 managed2 = (ManagedInverseTestInstance2)
newInstance(pm, ManagedInverseTestInstance2.class);
managed.setStringField("managed");
managed2.setStringField("managed2");
managed.setManaged2(managed2);
startTx(pm);
pm.persist(managed);
endTx(pm);
assertSame(managed, managed2.getManaged());
}