pm.getFetchPlan().addFetchGroup("all");
AttachB b = pm.find(AttachB.class, oid);
assertNotNull("b is null in testDetachWithGroups", b);
b = (AttachB) pm.detach(b);
endEm(pm);
assertTrue(pm.isDetached(b));
assertEquals("b.getAint() not 5", 5, b.getAint());
assertEquals("b.getAint() not 5str", "5", b.getBstr());