Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class HornetQBackupActivationTestCase { private static int ACTIVATION_TIMEOUT = 10000 ; private static int RELOAD_TIMEOUT = 10000 ; public static final String LIVE_SERVER = "jbossas-messaging-live" ; public static final String BACKUP_SERVER = "jbossas-messaging-backup" ; @ ArquillianResource private static ContainerController container ; private ModelControllerClient liveClient ; private ModelControllerClient backupClient ; @ Before public void initServer ( ) throws Exception { } @ After public void closeServer ( ) throws Exception { } private static ModelControllerClient createLiveClient ( ) { } private static ModelControllerClient createBackupClient ( ) throws UnknownHostException { } @ Test public void testBackupActivation ( ) throws Exception { } @ Test public void testBackupFailoverAfterFailback ( ) throws Exception { } @ Test public void testPassiveBackupReload ( ) throws Exception { } @ Test public void testActiveBackupReload ( ) throws Exception { } @ Test public void testLiveReload ( ) throws Exception { } private void reload ( ModelControllerClient client ) throws IOException { } private static void waitForHornetQServerActivation ( ModelControllerClient client , boolean expectedActive , int timeout ) throws IOException { } private void waitForBackupServerToReload ( int timeout ) throws Exception { } private void waitForLiveServerToReload ( int timeout ) throws Exception { } private static void addQueue ( ModelControllerClient client , String queueName ) throws IOException { } private static void addJMSQueue ( ModelControllerClient client , String jmsQueueName ) throws IOException { } private static void addJMSTopic ( ModelControllerClient client , String jmsTopicName ) throws IOException { } private static void checkConnectionFactory ( ModelControllerClient client , boolean active ) throws Exception { } private static void checkQueue ( ModelControllerClient client , String queueName , boolean active ) throws Exception { } private static void checkJMSQueue ( ModelControllerClient client , String jmsQueueName , boolean active ) throws Exception { } private static void checkQueue0 ( ModelControllerClient client , ModelNode address , String runtimeAttributeName , boolean active ) throws Exception { } private static void checkJMSTopic ( ModelControllerClient client , String jmsTopicName , boolean active ) throws Exception { } public static void checkHornetQServerStartedAndActiveAttributes ( ModelControllerClient client , boolean expectedStarted , boolean expectedActive ) throws IOException { } private static ModelNode execute ( ModelControllerClient client , ModelNode operation ) throws IOException { } private static void executeWithFailure ( ModelControllerClient client , ModelNode operation ) throws IOException { ModelNode result = client . execute ( operation ) ; assertEquals ( result . toJSONString ( true ) , FAILED , result . get ( OUTCOME ) . asString ( ) ) ; <START_BUG> assertTrue ( result . toJSONString ( true ) , result . get ( FAILURE_DESCRIPTION ) . asString ( ) . contains ( "WFLYMSG0066" ) ) ; <END_BUG> assertFalse ( result . has ( RESULT ) ) ; } }

Fix:
assertTrue ( result . toJSONString ( true ) , result . get ( FAILURE_DESCRIPTION ) . asString ( ) . contains ( "JBAS011678" ) ) ;