Buggy code:
} return super . expectFailed ( operation ) ; } } ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( DiscoveryGroupDefinition . PATH ) , new RejectExpressionsConfig ( DiscoveryGroupDefinition . REFRESH_TIMEOUT , DiscoveryGroupDefinition . INITIAL_WAIT_TIMEOUT ) { @ Override public boolean expectFailed ( ModelNode operation ) { if ( "groupU" . equals ( operation . get ( OP_ADDR ) . get ( 2 ) . get ( DISCOVERY_GROUP ) . asString ( ) ) ) { return true ; } return super . expectFailed ( operation ) ; } <START_BUG> } ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( DivertDefinition . PATH ) , new RejectExpressionsConfig ( DivertDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( QueueDefinition . PATH ) , new RejectExpressionsConfig ( QueueDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( ClusterConnectionDefinition . PATH ) , MessagingSubsystem13TestCase . createChainedConfig ( ClusterConnectionDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 , ClusterConnectionDefinition . ATTRIBUTES_ADDED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( BridgeDefinition . PATH ) , new RejectExpressionsConfig ( BridgeDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( GroupingHandlerDefinition . PATH ) , new RejectExpressionsConfig ( GroupingHandlerDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( AddressSettingDefinition . PATH ) , new RejectExpressionsConfig ( AddressSettingDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( ConnectorServiceDefinition . PATH ) . append ( ConnectorServiceParamDefinition . PATH ) , new RejectExpressionsConfig ( ConnectorServiceParamDefinition . VALUE ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( ConnectionFactoryDefinition . PATH ) , MessagingSubsystem13TestCase . createChainedConfig ( ConnectionFactoryDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 , new AttributeDefinition [ ] { CommonAttributes . CALL_FAILOVER_TIMEOUT } ) . setReadOnly ( FACTORY_TYPE ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( PooledConnectionFactoryDefinition . PATH ) , MessagingSubsystem13TestCase . createChainedConfig ( PooledConnectionFactoryDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 , PooledConnectionFactoryDefinition . ATTRIBUTES_ADDED_IN_1_2_0 ) . setReadOnly ( TRANSACTION ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( JMSQueueDefinition . PATH ) , new RejectExpressionsConfig ( JMSQueueDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( JMSTopicDefinition . PATH ) , new RejectExpressionsConfig ( JMSTopicDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( JMSBridgeDefinition . PATH ) , DISCARDED_RESOURCE ) ) ; <END_BUG> } private static String [ ] concat ( AttributeDefinition [ ] attrs1 , String ... attrs2 ) { } private static ChainedConfig createChainedConfig ( AttributeDefinition [ ] rejectedExpression , AttributeDefinition [ ] newAttributes ) { } }

Fix:
} ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( DivertDefinition . PATH ) , new RejectExpressionsConfig ( DivertDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( QueueDefinition . PATH ) , new RejectExpressionsConfig ( QueueDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( ClusterConnectionDefinition . PATH ) , MessagingSubsystem13TestCase . createChainedConfig ( ClusterConnectionDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 , ClusterConnectionDefinition . ATTRIBUTES_ADDED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( BridgeDefinition . PATH ) , new RejectExpressionsConfig ( BridgeDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( GroupingHandlerDefinition . PATH ) , new RejectExpressionsConfig ( GroupingHandlerDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( AddressSettingDefinition . PATH ) , new RejectExpressionsConfig ( AddressSettingDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( ConnectorServiceDefinition . PATH ) . append ( ConnectorServiceParamDefinition . PATH ) , new RejectExpressionsConfig ( ConnectorServiceParamDefinition . VALUE ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( ConnectionFactoryDefinition . PATH ) , MessagingSubsystem13TestCase . createChainedConfig ( ConnectionFactoryDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 , new AttributeDefinition [ ] { CommonAttributes . CALL_FAILOVER_TIMEOUT } ) . setReadOnly ( FACTORY_TYPE ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( PooledConnectionFactoryDefinition . PATH ) , MessagingSubsystem13TestCase . createChainedConfig ( PooledConnectionFactoryDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 , PooledConnectionFactoryDefinition . ATTRIBUTES_ADDED_IN_1_2_0 ) . setReadOnly ( TRANSACTION ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( JMSQueueDefinition . PATH ) , new RejectExpressionsConfig ( JMSQueueDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( HornetQServerResourceDefinition . HORNETQ_SERVER_PATH ) . append ( JMSTopicDefinition . PATH ) , new RejectExpressionsConfig ( JMSTopicDefinition . ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 ) ) . addFailedAttribute ( subsystemAddress . append ( JMSBridgeDefinition . PATH ) , REJECTED_RESOURCE ) ) ;