public void test()
throws Exception {
MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(10);
Mailbox factoryMailbox = mailboxFactory.createMailbox();
JAFactory factory = new JAFactory();
factory.initialize(factoryMailbox);
(new JidFactories()).initialize(factoryMailbox, factory);
(new JFileFactories()).initialize(factoryMailbox, factory);
factory.defineActorType("inc", IncrementCounterTransaction.class);
factory.defineActorType("get", GetCounterTransaction.class);
Path directoryPath = FileSystems.getDefault().getPath("CounterTest");