Buggy code:
public class CoreModelTestDelegate { private final Namespace NAMESPACE = Namespace . CURRENT ; private final Class < ? > testClass ; private final List < KernelServices > kernelServices = new ArrayList < KernelServices > ( ) ; public CoreModelTestDelegate ( Class < ? > testClass ) { } void initializeParser ( ) throws Exception { } void cleanup ( ) throws Exception { } protected KernelServicesBuilder createKernelServicesBuilder ( TestModelType type ) { } private void validateDescriptionProviders ( TestModelType type , ModelTestKernelServices kernelServices ) { ModelNode op = new ModelNode ( ) ; op . get ( OP ) . set ( "read-resource-description" ) ; op . get ( OP_ADDR ) . setEmptyList ( ) ; op . get ( "recursive" ) . set ( true ) ; op . get ( "inherited" ) . set ( false ) ; op . get ( "operations" ) . set ( true ) ; op . get ( "include-aliases" ) . set ( true ) ; ModelNode result = kernelServices . executeOperation ( op ) ; if ( result . hasDefined ( FAILURE_DESCRIPTION ) ) { <START_BUG> throw new RuntimeException ( result . get ( FAILURE_DESCRIPTION ) . asString ( ) ) ; <END_BUG> } ModelNode model = result . get ( RESULT ) ; if ( type == ( TestModelType . HOST ) ) { model = model . require ( "children" ) . require ( "host" ) . require ( "model-description" ) . require ( "master" ) ; } ValidationConfiguration config = KnownIssuesValidationConfiguration . createAndFixupModel ( type , model ) ; ModelTestModelDescriptionValidator validator = new ModelTestModelDescriptionValidator ( EMPTY_ADDRESS . toModelNode ( ) , model , config ) ; List < ValidationFailure > validationMessages = validator . validateResources ( ) ; if ( ( validationMessages . size ( ) ) > 0 ) { final StringBuilder builder = new StringBuilder ( "VALIDATION<seq2seq4repair_space>ERRORS<seq2seq4repair_space>IN<seq2seq4repair_space>MODEL:" ) ; for ( ValidationFailure failure : validationMessages ) { builder . append ( failure ) ; builder . append ( "\n" ) ; } Assert . fail ( ( "Failed<seq2seq4repair_space>due<seq2seq4repair_space>to<seq2seq4repair_space>validation<seq2seq4repair_space>errors<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>model.<seq2seq4repair_space>Please<seq2seq4repair_space>fix<seq2seq4repair_space>:-)<seq2seq4repair_space>" + ( builder . toString ( ) ) ) ) ; } } private class KernelServicesBuilderImpl implements KernelServicesBuilder , ModelTestBootOperationsBuilder . BootOperationParser { private final TestModelType type ; private final ModelTestBootOperationsBuilder bootOperationBuilder = new ModelTestBootOperationsBuilder ( testClass , this ) ; private final TestParser testParser ; private ProcessType processType ; private RunningMode runningMode ; private ModelInitializer modelInitializer ; private OperationValidation validateOperations = OperationValidation . LOG_VALIDATION_ERRORS ; private boolean validateDescription ; private XMLMapper xmlMapper = Factory . create ( ) ; public KernelServicesBuilderImpl ( TestModelType type ) { } public KernelServicesBuilder setDontValidateOperations ( ) { } public KernelServicesBuilder validateDescription ( ) { } @ Override public KernelServicesBuilder setXmlResource ( String resource ) throws IOException , XMLStreamException { } @ Override public KernelServicesBuilder setXml ( String subsystemXml ) throws XMLStreamException { } @ Override public KernelServicesBuilder setBootOperations ( List < ModelNode > bootOperations ) { } @ Override public KernelServicesBuilder setModelInitializer ( ModelInitializer modelInitializer , ModelWriteSanitizer modelWriteSanitizer ) { } public KernelServices build ( ) throws Exception { } @ Override public List < ModelNode > parse ( String xml ) throws XMLStreamException { } } }

Fix:
throw new RuntimeException ( result . get ( FAILURE_DESCRIPTION ) . toString ( ) ) ;