OpenJPAEntityManager pm = getPM();
AttachB b = (AttachB) pm.find(AttachB.class, oid);
assertNotNull("b is null in doCollectionTest", b);
b.getDs();
b = (AttachB) pm.detachCopy(b);
endEm(pm);
assertEquals("b is null in doCollectionTest", 1, b.getDs().size());
if (remove) {
for (Iterator it = b.getDs().iterator(); it.hasNext();) {