Buggy code:
public class EeSubsystemTestCase extends AbstractSubsystemBaseTest { public EeSubsystemTestCase ( ) { } @ Override protected String getSubsystemXml ( ) throws IOException { } @ Test public void testTransformers712 ( ) throws Exception { } @ Test public void testTransformersEAP600 ( ) throws Exception { } private void testTransformers712 ( ModelTestControllerVersion controllerVersion ) throws Exception { } @ Test public void testTransformers713 ( ) throws Exception { } @ Test public void testTransformers720 ( ) throws Exception { } @ Test public void testTransformersEAP601 ( ) throws Exception { } @ Test public void testTransformersEAP610 ( ) throws Exception { } @ Test public void testTransformersEAP611 ( ) throws Exception { } private void testTransformers1_0_0_post712 ( ModelTestControllerVersion controllerVersion ) throws Exception { } @ Test public void testTransformers713Reject ( ) throws Exception { } @ Test public void testTransformers720Reject ( ) throws Exception { } @ Test public void testTransformersEAP601Reject ( ) throws Exception { } @ Test public void testTransformersEAP610Reject ( ) throws Exception { } @ Test public void testTransformersEAP611Reject ( ) throws Exception { } private void testTransformers1_0_0_reject ( ModelTestControllerVersion controllerVersion ) throws Exception { String subsystemXml = readResource ( "subsystem.xml" ) ; ModelVersion modelVersion = ModelVersion . create ( 1 , 0 , 0 ) ; KernelServicesBuilder builder = createKernelServicesBuilder ( MANAGEMENT ) ; List < ModelNode > xmlOps = builder . parseXml ( subsystemXml ) ; builder . createLegacyKernelServicesBuilder ( null , controllerVersion , modelVersion ) . addMavenResourceURL ( ( "org.jboss.as:jboss-as-ee:" + ( controllerVersion . getMavenGavVersion ( ) ) ) ) ; KernelServices mainServices = builder . build ( ) ; Assert . assertTrue ( mainServices . isSuccessfulBoot ( ) ) ; <START_BUG> ModelTestUtils . checkFailedTransformedBootOperations ( mainServices , modelVersion , xmlOps , new FailedOperationTransformationConfig ( ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM ) , new EeSubsystemTestCase . GlobalModulesConfig ( ) ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( CONTEXT_SERVICE ) ) , REJECTED_RESOURCE ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( MANAGED_THREAD_FACTORY ) ) , REJECTED_RESOURCE ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( MANAGED_EXECUTOR_SERVICE ) ) , REJECTED_RESOURCE ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( MANAGED_SCHEDULED_EXECUTOR_SERVICE ) ) , REJECTED_RESOURCE ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( ANNOTATION_PROPERTY_REPLACEMENT ) ) , REJECTED_RESOURCE ) ) ; <END_BUG> } @ Test public void testTransformersDiscardGlobalModules713 ( ) throws Exception { } @ Test public void testTransformersDiscardGlobalModules720 ( ) throws Exception { } @ Test public void testTransformersDiscardGlobalModulesEAP601 ( ) throws Exception { } @ Test public void testTransformersDiscardGlobalModulesEAP610 ( ) throws Exception { } @ Test public void testTransformersDiscardGlobalModulesEAP611 ( ) throws Exception { } private void testTransformersDiscardGlobalModules1_0_0 ( ModelTestControllerVersion controllerVersion ) throws Exception { } private static final class JBossDescriptorPropertyReplacementConfig extends AttributesPathAddressConfig < EeSubsystemTestCase . JBossDescriptorPropertyReplacementConfig > { public JBossDescriptorPropertyReplacementConfig ( ) { } @ Override protected boolean isAttributeWritable ( String attributeName ) { } @ Override protected boolean checkValue ( String attrName , ModelNode attribute , boolean isWriteAttribute ) { } @ Override protected ModelNode correctValue ( ModelNode toResolve , boolean isWriteAttribute ) { } } private static final class GlobalModulesConfig extends AttributesPathAddressConfig < EeSubsystemTestCase . GlobalModulesConfig > { public GlobalModulesConfig ( ) { } @ Override protected boolean isAttributeWritable ( String attributeName ) { } @ Override protected boolean checkValue ( String attrName , ModelNode attribute , boolean isWriteAttribute ) { } @ Override protected ModelNode correctValue ( ModelNode toResolve , boolean isWriteAttribute ) { } } }

Fix:
ModelTestUtils . checkFailedTransformedBootOperations ( mainServices , modelVersion , xmlOps , new FailedOperationTransformationConfig ( ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM ) , new EeSubsystemTestCase . GlobalModulesConfig ( ) ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( CONTEXT_SERVICE ) ) , REJECTED_RESOURCE ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( MANAGED_THREAD_FACTORY ) ) , REJECTED_RESOURCE ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( MANAGED_EXECUTOR_SERVICE ) ) , REJECTED_RESOURCE ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( MANAGED_SCHEDULED_EXECUTOR_SERVICE ) ) , REJECTED_RESOURCE ) . addFailedAttribute ( PathAddress . pathAddress ( PATH_SUBSYSTEM , PathElement . pathElement ( EJB_ANNOTATION_PROPERTY_REPLACEMENT ) ) , REJECTED_RESOURCE ) ) ;