mailboxFactory.close();
}
}
public void test8() throws Exception {
MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(1);
try {
Mailbox mailbox = mailboxFactory.createMailbox();
JAFactory factory = new JAFactory();
factory.initialize(mailbox);
(new JidFactories()).initialize(mailbox, factory);
BMapJid<Integer, IntegerJid> m = (BMapJid) factory.newActor(JidFactories.INTEGER_INTEGER_BMAP_JID_TYPE);
int i = 0;
while (i < 10000) {
m.kMake(i);
IntegerJid ij0 = m.kGet(i);
ij0.setValue(i);
i += 1;
}
i = 0;
while (i < 10000) {
m.kRemove(i);
i += 1;
}
assertTrue(m.isLeaf());
assertEquals(0, m.size());
} finally {
mailboxFactory.close();
}
}