Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient @ ServerSetup ( { IIOPTransactionPropagationTestCase . JTSSetup . class } ) public class IIOPTransactionPropagationTestCase { private static final Logger log = Logger . getLogger ( IIOPTransactionPropagationTestCase . class ) ; @ ArquillianResource private static ContainerController container ; @ ArquillianResource private Deployer deployer ; public static final String DEFAULT_JBOSSAS = "iiop-client" ; private static final String ARCHIVE_NAME = "iiop-jts-ctx-propag-test" ; private static InitialContext context ; @ Deployment ( name = IIOPTransactionPropagationTestCase . ARCHIVE_NAME , managed = true ) @ TargetsContainer ( IIOPTransactionPropagationTestCase . DEFAULT_JBOSSAS ) public static Archive < ? > deploy ( ) throws InvalidName , SystemException { } @ BeforeClass public static void beforeClass ( ) throws NamingException , InvalidName , SystemException { } @ AfterClass public static void afterClass ( ) throws NamingException { } @ Test public void testIIOPInvocation ( ) throws Throwable { } @ Test public void testIIOPNeverCallInvocation ( ) throws Throwable { } @ Test public void testIIOPInvocationWithRollbackOnly ( ) throws Throwable { } static class JTSSetup implements ServerSetupTask { public static final String JACORB_TRANSACTIONS_JTA = "spec" ; public static final String JACORB_TRANSACTIONS_JTS = "on" ; private boolean isTransactionJTS = true ; private String jacorbTransaction = IIOPTransactionPropagationTestCase . JTSSetup . JACORB_TRANSACTIONS_JTA ; ManagementClient managementClient = null ; @ Override public void setup ( ManagementClient managementClient , String containerId ) throws Exception { } @ Override public void tearDown ( final ManagementClient managementClient , final String containerId ) throws Exception { } public boolean checkJTSOnTransactions ( ) throws IOException , MgmtOperationException { } public String checkTransactionsOnJacorb ( ) throws IOException , MgmtOperationException { } public void setTransactionJTS ( boolean enabled ) throws IOException , MgmtOperationException { } public void setJacorbJTS ( boolean enabled ) throws IOException , MgmtOperationException { } public boolean reload ( ) throws IOException , MgmtOperationException { final ModelNode operation = new ModelNode ( ) ; operation . get ( OP ) . set ( "reload" ) ; IIOPTransactionPropagationTestCase . log . info ( ( "operation=" + operation ) ) ; try { executeOperation ( operation ) ; } catch ( Exception e ) { IIOPTransactionPropagationTestCase . log . error ( "Exception<seq2seq4repair_space>applying<seq2seq4repair_space>reload<seq2seq4repair_space>operation.<seq2seq4repair_space>This<seq2seq4repair_space>is<seq2seq4repair_space>probably<seq2seq4repair_space>fine,<seq2seq4repair_space>as<seq2seq4repair_space>the<seq2seq4repair_space>server<seq2seq4repair_space>probably<seq2seq4repair_space>shut<seq2seq4repair_space>down<seq2seq4repair_space>before<seq2seq4repair_space>the<seq2seq4repair_space>response<seq2seq4repair_space>was<seq2seq4repair_space>sent" , e ) ; } boolean reloaded = false ; int i = 0 ; while ( ! reloaded ) { try { Thread . sleep ( 2000 ) ; if ( managementClient . isServerInRunningState ( ) ) { reloaded = true ; <START_BUG> IIOPTransactionPropagationTestCase . log . info ( "Server<seq2seq4repair_space>was<seq2seq4repair_space>successfully<seq2seq4repair_space>reloaded" ) ; <END_BUG> } } catch ( Throwable t ) { } finally { if ( ( ! reloaded ) && ( ( i ++ ) > 20 ) ) { throw new MgmtOperationException ( "Server<seq2seq4repair_space>reloading<seq2seq4repair_space>failed" ) ; } } } return reloaded ; } private ModelNode executeOperation ( final ModelNode op , boolean unwrapResult ) throws IOException , MgmtOperationException { } private ModelNode executeOperation ( final ModelNode op ) throws IOException , MgmtOperationException { } } }

Fix:
IIOPTransactionPropagationTestCase . log . info ( "Server<seq2seq4repair_space>was<seq2seq4repair_space>sucessfully<seq2seq4repair_space>reloaded" ) ;