Jta { public static boolean isFrozen() { synchronized (initLock) { return Jta.frozen; } } private  Jta(); static void configure(TransactionManager transactionManager, UserTransaction userTransaction); static void reset(); static boolean isFrozen(); static boolean isEnabled(); static TransactionManager getTransactionManager(); static UserTransaction getUserTransaction();  }
@Test public void testIsFrozen() throws Exception { assertFalse(Jta.isFrozen()); Jta.configure(transactionManager, userTransaction); assertTrue(Jta.isFrozen()); }