transactionManager.commit();
assertNotNull("Should be committed", mockXAResource.getCommitted());
}
public void testUserTransactionEnlistingExistingConnections() throws Throwable {
TransactionContext.setContext(new UnspecifiedTransactionContext());
userTransaction = new UserTransactionImpl();
userTransaction.setUp(transactionManager, connectionTrackingCoordinator);
userTransaction.setOnline(true);
defaultComponentInterceptor.invoke(defaultComponentContext);
MockXAResource mockXAResource = (MockXAResource) mockManagedConnection.getXAResource();