@Test
public void testIsEnabled() throws Exception {

    assertFalse(Jta.isEnabled());
    Jta.configure(transactionManager, userTransaction);
    assertTrue(Jta.isEnabled());
    Jta.reset();
    Jta.configure(null, null);
    assertFalse(Jta.isEnabled());
}