public void testPersist() throws Exception {
PersistenceManager pm = pmf.getPersistenceManager();
try {
// Persist Side A
UnownedJDOManyToManySideB b = new UnownedJDOManyToManySideB();
pm.makePersistent(b);
// Create and persist Side B with another Side A, plus the existing Side A
UnownedJDOManyToManySideA a = new UnownedJDOManyToManySideA();
UnownedJDOManyToManySideB b2 = new UnownedJDOManyToManySideB();
b2.getAs().add(a);
a.getBs().add(b2);
a.getBs().add(b);
b.getAs().add(a);
pm.makePersistent(b2);
pm.makePersistent(a);