public void test1() {
PersistenceManager pm = pmf.getPersistenceManager();
pm.currentTransaction().begin();
Object oid = pm.newObjectIdInstance(AMMB.class, "1230");
Assert.assertNotNull("null oid !", oid);
AMMB a = (AMMB) pm.getObjectById(oid, false);
Assert.assertNotNull("null AMMB object", a);
Collection bs = a.getBs();
Assert.assertNotNull("null collection of BMMB", bs);
Iterator it = bs.iterator();
while(it.hasNext()) {
BMMB b = (BMMB) it.next();
Assert.assertNotNull("null element collection of BMMB", b);