pm.currentTransaction().commit();
pm.evictAll();
pm.currentTransaction().begin();
ar1 = (AutoRef) pm.getObjectById(
pm.newObjectIdInstance(AutoRef.class, "testA_ar1"), false);
pm.deletePersistentAll(ar1.getMyRefs());
pm.deletePersistent(ar1.getMyRef());
pm.deletePersistent(ar1);
pm.currentTransaction().commit();
pm.close();
}