TransactionRepository tr = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm));
IdManager idm = new IdManager("TRANSACTION_ID", 10, pm); idm.start();  TransactionRepository tr = new TransactionRepository(pm, idm);
   public void testDoneIsSetWithTransaction() throws Throwable   {      //Calling acknowledge on a SimpleDelivery      //Should always result in done being set to true,      //even if there is a transaction present.      //Otherwise we can end up with a race condition where      //the message is acked when still in flight then added      //when handle is returned.            assertFalse(delivery.isDone());            ServiceContainer sc = new ServiceContainer("all,-remoting,-security");      sc.start();            PersistenceManager pm =         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(), null,                                    true, true, true, 100);            pm.start();            TransactionRepository tr = new TransactionRepository(pm, new IdManager("TRANSACTION_ID", 10, pm));      tr.start();            Transaction tx = tr.createTransaction();            ((SimpleDelivery)delivery).acknowledge(tx);            assertTrue(delivery.isDone());            pm.stop();      tr.stop();            sc.stop();   }