assertEquals(javax.transaction.Status.STATUS_COMMITTED, tm.getStatus());
}
public void testTwoPhaseCommitSyncViaXATerminator() throws Exception
{
final Xid xid = new XidImple(new Uid());
final TransactionImple tm = TxImporter.importTransaction(xid);
final TestSynchronization sync = new TestSynchronization();
tm.registerSynchronization(sync);
final XATerminator xaTerminator = new XATerminatorImple();
assertEquals(XAResource.XA_RDONLY, xaTerminator.prepare(xid));