Buggy code:
public class LoggingSubsystemTestCase extends AbstractLoggingSubsystemTest { private static final Pattern COLOR_PATTERN = Pattern . compile ( "(%K\\{[a-zA-Z]*?})" ) ; @ Override protected String getSubsystemXml ( ) throws IOException { } @ Test public void testExpressions ( ) throws Exception { } @ Test public void testConfiguration ( ) throws Exception { } @ Test public void testTransformers712 ( ) throws Exception { } @ Test public void testTransformers713 ( ) throws Exception { } @ Test public void testTransformers720 ( ) throws Exception { } @ Test public void testRejectExpressions712 ( ) throws Exception { } @ Test public void testRejectExpressions713 ( ) throws Exception { } @ Test public void testFailedTransformedBootOperations720 ( ) throws Exception { } private void testTransformer1_1_0 ( ModelTestControllerVersion controllerVersion ) throws Exception { } private void testRejectExpressions1_1_0 ( ModelTestControllerVersion controllerVersion ) throws Exception { final ModelVersion modelVersion = ModelVersion . create ( 1 , 1 , 0 ) ; final KernelServicesBuilder builder = createKernelServicesBuilder ( LoggingTestEnvironment . getManagementInstance ( ) ) ; builder . createLegacyKernelServicesBuilder ( null , controllerVersion , modelVersion ) . addMavenResourceURL ( ( "org.jboss.as:jboss-as-logging:" + ( controllerVersion . getMavenGavVersion ( ) ) ) ) ; KernelServices mainServices = builder . build ( ) ; KernelServices legacyServices = mainServices . getLegacyServices ( modelVersion ) ; Assert . assertNotNull ( legacyServices ) ; Assert . assertTrue ( "main<seq2seq4repair_space>services<seq2seq4repair_space>did<seq2seq4repair_space>not<seq2seq4repair_space>boot" , mainServices . isSuccessfulBoot ( ) ) ; Assert . assertTrue ( legacyServices . isSuccessfulBoot ( ) ) ; final List < ModelNode > ops = builder . parseXmlResource ( "//expressions.xml" ) ; <START_BUG> ModelTestUtils . checkFailedTransformedBootOperations ( mainServices , modelVersion , ops , new FailedOperationTransformationConfig ( ) . addFailedAttribute ( SUBSYSTEM_ADDRESS , new org . jboss . as . model . test . FailedOperationTransformationConfig . NewAttributesConfig ( LoggingRootResource . ATTRIBUTES ) ) . addFailedAttribute ( createRootLoggerAddress ( ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( RootLoggerResourceDefinition . EXPRESSION_ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( LoggerResourceDefinition . EXPRESSION_ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( ASYNC_HANDLER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( AsyncHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( CONSOLE_HANDLER_PATH ) , ChainedConfig . createBuilder ( ATTRIBUTES ) . addConfig ( new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( ConsoleHandlerResourceDefinition . ATTRIBUTES ) ) . build ( ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( FILE_HANDLER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( FileHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( FILE_HANDLER_PATH ) , ChainedConfig . createBuilder ( ATTRIBUTES ) . addConfig ( new FailedOperationTransformationConfig . NewAttributesConfig ( CommonAttributes . ENABLED ) ) . addConfig ( new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( Logging . join ( DEFAULT_ATTRIBUTES , CommonAttributes . AUTOFLUSH , CommonAttributes . APPEND , CommonAttributes . FILE ) ) ) . addConfig ( new FailedOperationTransformationConfig . NewAttributesConfig ( AbstractHandlerDefinition . NAMED_FORMATTER ) ) . build ( ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( PERIODIC_HANDLER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( PeriodicHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( SIZE_ROTATING_HANDLER_PATH ) , ChainedConfig . createBuilder ( SizeRotatingHandlerResourceDefinition . ATTRIBUTES ) . addConfig ( new org . jboss . as . model . test . FailedOperationTransformationConfig . NewAttributesConfig ( SizeRotatingHandlerResourceDefinition . ROTATE_ON_BOOT ) ) . addConfig ( new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( SizeRotatingHandlerResourceDefinition . ATTRIBUTES ) ) . build ( ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( CUSTOM_HANDLE_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( CustomHandlerResourceDefinition . WRITABLE_ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( SYSLOG_HANDLER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( PATTERN_FORMATTER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( CUSTOM_FORMATTER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( CONSOLE_HANDLER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( FILE_HANDLER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( ROOT_LOGGER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( LOGGER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( SYSLOG_HANDLER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( PATTERN_FORMATTER_PATH ) , REJECTED_RESOURCE ) ) ; <END_BUG> } private void testTransformer1_2_0 ( final ModelTestControllerVersion controllerVersion ) throws Exception { } private void testFailedTransformedBootOperations1_2_0 ( final ModelTestControllerVersion controllerVersion ) throws Exception { } private void testTransformOperations ( final KernelServices mainServices , final ModelVersion modelVersion , final ModelNode legacyModel ) throws Exception { } private static ModelNode executeTransformOperation ( final KernelServices kernelServices , final ModelVersion modelVersion , final ModelNode op ) throws OperationFailedException { } private static ModelNode executeTransformOperation ( final KernelServices kernelServices , final ModelVersion modelVersion , final TransformedOperation transformedOp ) throws OperationFailedException { } private static void addRemoveHandler ( final KernelServices kernelServices , final ModelVersion modelVersion , final ModelNode address , final AttributeDefinition handlerAttribute , final String handlerName ) throws OperationFailedException { } private static void validateLegacyFormatter ( final KernelServices kernelServices , final ModelVersion modelVersion , final ModelNode address ) throws OperationFailedException { } private static void validateLegacyFilter ( final KernelServices kernelServices , final ModelVersion modelVersion , final ModelNode address , final String filterExpression ) throws OperationFailedException { }

Fix:
ModelTestUtils . checkFailedTransformedBootOperations ( mainServices , modelVersion , ops , new FailedOperationTransformationConfig ( ) . addFailedAttribute ( SUBSYSTEM_ADDRESS , new org . jboss . as . model . test . FailedOperationTransformationConfig . NewAttributesConfig ( LoggingRootResource . ATTRIBUTES ) ) . addFailedAttribute ( createRootLoggerAddress ( ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( RootLoggerResourceDefinition . EXPRESSION_ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( LoggerResourceDefinition . EXPRESSION_ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( ASYNC_HANDLER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( AsyncHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( CONSOLE_HANDLER_PATH ) , ChainedConfig . createBuilder ( ATTRIBUTES ) . addConfig ( new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( ConsoleHandlerResourceDefinition . ATTRIBUTES ) ) . build ( ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( FILE_HANDLER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( FileHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( FILE_HANDLER_PATH ) , ChainedConfig . createBuilder ( ATTRIBUTES ) . addConfig ( new FailedOperationTransformationConfig . NewAttributesConfig ( CommonAttributes . ENABLED ) ) . addConfig ( new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( Logging . join ( DEFAULT_ATTRIBUTES , CommonAttributes . AUTOFLUSH , CommonAttributes . APPEND , CommonAttributes . FILE ) ) ) . addConfig ( new FailedOperationTransformationConfig . NewAttributesConfig ( AbstractHandlerDefinition . NAMED_FORMATTER ) ) . build ( ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( PERIODIC_HANDLER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( PeriodicHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( SIZE_ROTATING_HANDLER_PATH ) , ChainedConfig . createBuilder ( SizeRotatingHandlerResourceDefinition . ATTRIBUTES ) . addConfig ( new org . jboss . as . model . test . FailedOperationTransformationConfig . NewAttributesConfig ( SizeRotatingHandlerResourceDefinition . ROTATE_ON_BOOT ) ) . addConfig ( new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( SizeRotatingHandlerResourceDefinition . ATTRIBUTES ) ) . build ( ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( CUSTOM_HANDLE_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( CustomHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( SYSLOG_HANDLER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( PATTERN_FORMATTER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( CUSTOM_FORMATTER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( CONSOLE_HANDLER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( FILE_HANDLER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( ROOT_LOGGER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( LOGGER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( SYSLOG_HANDLER_PATH ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( PATTERN_FORMATTER_PATH ) , REJECTED_RESOURCE ) ) ;