ServiceContainer sc = new ServiceContainer("all,-remoting,-security");
sc.start();
PersistenceManager pm =
new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
sc.getPersistenceManagerSQLProperties(),
true, true, true, false, 100);
pm.start();
IDManager idm = new IDManager("TRANSACTION_ID", 10, pm);
idm.start();
TransactionRepository tr = new TransactionRepository(pm, new SimpleMessageStore(), idm);
tr.start();
Transaction tx = tr.createTransaction();
((SimpleDelivery)delivery).acknowledge(tx);
assertTrue(delivery.isDone());
pm.stop();
tr.stop();
sc.stop();
}