public class TransactionAggregatorTest extends TestCase {
public void test()
throws Exception {
MailboxFactory mailboxFactory = JAMailboxFactory.newMailboxFactory(10);
Mailbox factoryMailbox = mailboxFactory.createMailbox();
JAFactory factory = new JAFactory();
factory.initialize(factoryMailbox);
(new JFileFactories()).initialize(factoryMailbox, factory);
factory.defineActorType("helloWorldTransaction", HelloWorldTransaction.class);
JAFuture future = new JAFuture();
Mailbox dbMailbox = mailboxFactory.createAsyncMailbox();
StatelessDB db = new StatelessDB();
db.initialize(dbMailbox, factory);
TransactionProcessor transactionProcessor = new TransactionProcessor();
transactionProcessor.initialize(dbMailbox, db);