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 testRejectExpressions712 ( ) throws Exception { } @ Test public void testRejectExpressions713 ( ) throws Exception { } private void testTransformer1_1_0 ( final String gav ) throws Exception { } private void testRejectExpressions1_1_0 ( final String gav ) throws Exception { final ModelVersion modelVersion = ModelVersion . create ( 1 , 1 , 0 ) ; final KernelServicesBuilder builder = createKernelServicesBuilder ( LoggingTestEnvironment . getManagementInstance ( ) ) ; builder . createLegacyKernelServicesBuilder ( LoggingTestEnvironment . getManagementInstance ( ) , modelVersion ) . addMavenResourceURL ( gav ) ; 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 ( 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 ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( ConsoleHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( FILE_HANDLER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( FileHandlerResourceDefinition . ATTRIBUTES ) ) . 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 ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( SizeRotatingHandlerResourceDefinition . ATTRIBUTES ) ) . 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 ) , DISCARDED_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 ( 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 ) ) ; <END_BUG> } 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 ( 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 ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( ConsoleHandlerResourceDefinition . ATTRIBUTES ) ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( FILE_HANDLER_PATH ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( FileHandlerResourceDefinition . ATTRIBUTES ) ) . 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 ) , new org . jboss . as . model . test . FailedOperationTransformationConfig . RejectExpressionsConfig ( SizeRotatingHandlerResourceDefinition . ATTRIBUTES ) ) . 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 ( LOGGING_PROFILE ) , REJECTED_RESOURCE ) . addFailedAttribute ( SUBSYSTEM_ADDRESS . append ( LOGGING_PROFILE ) . append ( CONSOLE_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 ) ) ;