Buggy code:
public class RbacUtil { public static final String MONITOR_USER = "Monitor" ; public static final String OPERATOR_USER = "Operator" ; public static final String MAINTAINER_USER = "Maintainer" ; public static final String DEPLOYER_USER = "Deployer" ; public static final String ADMINISTRATOR_USER = "Administrator" ; public static final String AUDITOR_USER = "Auditor" ; public static final String SUPERUSER_USER = "SuperUser" ; public static final String MONITOR_ROLE = "Monitor" ; public static final String OPERATOR_ROLE = "Operator" ; public static final String MAINTAINER_ROLE = "Maintainer" ; public static final String DEPLOYER_ROLE = "Deployer" ; public static final String ADMINISTRATOR_ROLE = "Administrator" ; public static final String AUDITOR_ROLE = "Auditor" ; public static final String SUPERUSER_ROLE = "SuperUser" ; public static final String ROLE_MAPPING_ADDRESS_BASE = "core-service=management//access=authorization//role-mapping=" ; private static final String ROLE_MAPPING_USER_INCLUDE_ADDRESS_BASE = "//include=user-" ; private RbacUtil ( ) { } public static ModelNode executeOperation ( ModelControllerClient client , ModelNode operation , Outcome expectedOutcome ) throws IOException { } public static ModelNode executeOperation ( ManagementInterface client , ModelNode operation , Outcome expectedOutcome ) throws IOException { } public static ModelNode checkOperationResult ( ModelNode operation , ModelNode result , Outcome expectedOutcome ) { String outcome = result . get ( OUTCOME ) . asString ( ) ; switch ( expectedOutcome ) { case SUCCESS : if ( ! ( SUCCESS . equals ( outcome ) ) ) { System . out . println ( ( "Failed:<seq2seq4repair_space>" + operation ) ) ; System . out . print ( ( "Result:<seq2seq4repair_space>" + result ) ) ; <START_BUG> fail ( result . get ( FAILURE_DESCRIPTION ) . asString ( ) ) ; <END_BUG> } break ; case UNAUTHORIZED : { if ( ! ( FAILED . equals ( outcome ) ) ) { fail ( ( "Didn't<seq2seq4repair_space>fail:<seq2seq4repair_space>" + ( result . asString ( ) ) ) ) ; } if ( ( ( ( ( ! ( result . get ( FAILURE_DESCRIPTION ) . asString ( ) . contains ( "13456" ) ) ) && ( ! ( result . asString ( ) . contains ( "11360" ) ) ) ) && ( ! ( result . asString ( ) . contains ( "11361" ) ) ) ) && ( ! ( result . asString ( ) . contains ( "11362" ) ) ) ) && ( ! ( result . asString ( ) . contains ( "11363" ) ) ) ) { fail ( ( "Incorrect<seq2seq4repair_space>failure<seq2seq4repair_space>type:<seq2seq4repair_space>" + ( result . asString ( ) ) ) ) ; } break ; } case HIDDEN : { if ( ! ( FAILED . equals ( outcome ) ) ) { fail ( ( "Didn't<seq2seq4repair_space>fail:<seq2seq4repair_space>" + ( result . asString ( ) ) ) ) ; } String failureDesc = result . get ( FAILURE_DESCRIPTION ) . asString ( ) ; if ( ( ( ! ( failureDesc . contains ( "14807" ) ) ) && ( ! ( failureDesc . contains ( "14883" ) ) ) ) && ( ! ( failureDesc . contains ( "11340" ) ) ) ) { fail ( ( "Incorrect<seq2seq4repair_space>failure<seq2seq4repair_space>type:<seq2seq4repair_space>" + ( result . asString ( ) ) ) ) ; } break ; } case FAILED : { if ( ! ( FAILED . equals ( outcome ) ) ) { fail ( ( "Didn't<seq2seq4repair_space>fail:<seq2seq4repair_space>" + ( result . asString ( ) ) ) ) ; } String failureDesc = result . get ( FAILURE_DESCRIPTION ) . asString ( ) ; if ( ( ( ( failureDesc . contains ( "14807" ) ) || ( failureDesc . contains ( "14883" ) ) ) || ( failureDesc . contains ( "13456" ) ) ) || ( failureDesc . contains ( "11340" ) ) ) { fail ( ( "Incorrect<seq2seq4repair_space>failure<seq2seq4repair_space>type:<seq2seq4repair_space>" + ( result . asString ( ) ) ) ) ; } break ; } default : throw new IllegalStateException ( ) ; } return result ; } public static void addRoleMapping ( String role , ModelControllerClient client ) throws IOException { } public static void addRoleUser ( String role , String user , ModelControllerClient client ) throws IOException { } public static void removeRoleUser ( String role , String user , ModelControllerClient client ) throws IOException { } public static void removeRoleMapping ( String role , ModelControllerClient client ) throws IOException { } public static void addRoleHeader ( ModelNode operation , String ... roles ) { } public static String [ ] allStandardRoles ( ) { } public static void assertIsCallerInRole ( ModelControllerClient client , String role , boolean expectedOutcome ) throws IOException { } public static void setRoleMappingIncludeAll ( ModelControllerClient client , String role , boolean includeAll ) throws IOException { } public static void addServerGroupScopedRole ( ModelControllerClient client , String roleName , String baseRole , String ... serverGroups ) throws IOException { } public static void removeServerGroupScopedRole ( ModelControllerClient client , String roleName ) throws IOException { } public static void addHostScopedRole ( ModelControllerClient client , String roleName , String baseRole , String ... hosts ) throws IOException { } public static void removeHostScopedRole ( ModelControllerClient client , String roleName ) throws IOException { } }

Fix:
fail ( result . asString ( ) ) ;