@Test
public void testAcquireTransactionManager() throws Exception {

    Jta.configure(transactionManager, userTransaction);
    try {
        assertTrue(Jta.isEnabled());
        JtaTransactionController controller = new JtaTransactionController();
        assertEquals(transactionManager, controller.acquireTransactionManager());
    } finally {
        Jta.reset();
    }
}