Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class SizeAppenderRestartTestCase { private static Logger log = Logger . getLogger ( SizeAppenderRestartTestCase . class ) ; public static final String CONTAINER = "default-jbossas" ; public static final String DEPLOYMENT = "logging-deployment" ; private static final String FILE_NAME = "sizeAppenderRestartTestCase.log" ; private static final String SIZE_HANDLER_NAME = "sizeAppenderRestartTestCase" ; private static final ModelNode SIZE_HANDLER_ADDRESS = new ModelNode ( ) ; private static final ModelNode ROOT_LOGGER_ADDRESS = new ModelNode ( ) ; private static File logFile ; @ ArquillianResource private ContainerController container ; @ ArquillianResource private Deployer deployer ; private final ModelControllerClient client = TestSuiteEnvironment . getModelControllerClient ( ) ; private final ManagementClient managementClient = new ManagementClient ( client , TestSuiteEnvironment . getServerAddress ( ) , TestSuiteEnvironment . getServerPort ( ) , "http-remoting" ) ; @ Deployment ( name = SizeAppenderRestartTestCase . DEPLOYMENT , managed = false , testable = false ) public static WebArchive createDeployment ( ) { } @ Test @ InSequence ( - 1 ) public void startContainer ( ) throws Exception { } @ Test @ InSequence ( 1 ) public void stopContainer ( ) throws Exception { } @ Test public void appendTrueTest ( @ ArquillianResource URL url ) throws Exception { } @ Test public void appendFalseTest ( @ ArquillianResource URL url ) throws Exception { } private long appendTest ( String append , URL url ) throws Exception { } @ Test @ Ignore public void rotateFileOnRestartTest ( @ ArquillianResource URL url ) throws Exception { } private void restartServer ( ) { } private void checkLogs ( final String msg , final boolean expected ) throws Exception { } private void checkLogs ( final String msg , final boolean expected , File file ) throws Exception { } private void makeLog ( String msg , URL url ) throws Exception { } private int getResponse ( URL url ) throws IOException { } private ModelNode validateResponse ( final ModelNode operation ) throws Exception { } private ModelNode validateResponse ( ModelNode operation , boolean validateResult ) throws Exception { ModelNode response = null ; SizeAppenderRestartTestCase . log . info ( operation . asString ( ) ) ; response = client . execute ( operation ) ; SizeAppenderRestartTestCase . log . info ( response . asString ( ) ) ; if ( ! ( SUCCESS . equals ( response . get ( OUTCOME ) . asString ( ) ) ) ) { Assert . fail ( response . get ( FAILURE_DESCRIPTION ) . toString ( ) ) ; } if ( validateResult ) { <START_BUG> Assert . assertTrue ( "result<seq2seq4repair_space>exists" , response . has ( RESULT ) ) ; <END_BUG> } if ( response == null ) { Assert . fail ( "response<seq2seq4repair_space>was<seq2seq4repair_space>null" ) ; } return response . get ( RESULT ) ; } private void clearLogs ( File file ) { } static File getAbsoluteLogFilePath ( final ModelControllerClient client ) throws IOException , MgmtOperationException { } static void safeClose ( final Closeable closeable ) { } }

Fix:
Assert . assertTrue ( "result<seq2seq4repair_space>exists" , response . hasDefined ( RESULT ) ) ;