AMMB[] as = new AMMB[NB_XMMB];
BMMB[] bs = new BMMB[NB_XMMB];
for(int i=0; i<as.length; i++) {
as[i] = new AMMB(i);
bs[i] = new BMMB(i);
r1[i] = new Ref2AMMB(i*10, as[i]);
r2[i] = new Ref2Ref2AMMB(i*100, r1[i]);
}
Collection as0 = new ArrayList(2);
as0.add(bs[0]);
as0.add(bs[1]);