Buggy code:
public class WebSubsystemTestCase extends AbstractSubsystemBaseTest { public WebSubsystemTestCase ( ) { } @ Override protected String getSubsystemXml ( ) throws IOException { } @ Override protected String getSubsystemXml ( String configId ) throws IOException { } @ Override protected AdditionalInitialization createAdditionalInitialization ( ) { } @ Override protected void compareXml ( String configId , String original , String marshalled ) throws Exception { } @ Test public void testAliases ( ) throws Exception { } @ Test public void testTransformation_1_1_0_JBPAPP_9134 ( ) throws Exception { } @ Test public void testTransformation_1_1_0 ( ) throws Exception { String subsystemXml = readResource ( "subsystem-1.1.0.xml" ) ; ModelVersion modelVersion = ModelVersion . create ( 1 , 1 , 0 ) ; KernelServicesBuilder builder = createKernelServicesBuilder ( null ) . setSubsystemXml ( subsystemXml ) ; builder . createLegacyKernelServicesBuilder ( null , modelVersion ) . addMavenResourceURL ( "org.jboss.as:jboss-as-web:7.1.2.Final" ) . addMavenResourceURL ( "org.jboss.as:jboss-as-controller:7.1.2.Final" ) . addParentFirstClassPattern ( "org.jboss.as.controller.*" ) . addChildFirstClassPattern ( "org.jboss.as.controller.alias.*" ) ; KernelServices mainServices = builder . build ( ) ; KernelServices legacyServices = mainServices . getLegacyServices ( modelVersion ) ; Assert . assertNotNull ( legacyServices ) ; <START_BUG> checkSubsystemTransformer ( mainServices , modelVersion ) ; <END_BUG> ModelNode mainModel = mainServices . readWholeModel ( ) . get ( SUBSYSTEM , WebExtension . SUBSYSTEM_NAME ) ; ModelNode legacyModel = legacyServices . readWholeModel ( ) . get ( SUBSYSTEM , WebExtension . SUBSYSTEM_NAME ) ; ModelNode sslConfig = mainModel . get ( CONNECTOR , "https" , CONFIGURATION , SSL ) ; Assert . assertTrue ( sslConfig . isDefined ( ) ) ; Assert . assertFalse ( legacyModel . get ( CONNECTOR , "https" , CONFIGURATION , SSL ) . isDefined ( ) ) ; compare ( sslConfig , legacyModel . get ( CONNECTOR , "https" , SSL , CONFIGURATION ) , true ) ; ModelNode ssoConfig = mainModel . get ( VIRTUAL_SERVER , "default-host" , CONFIGURATION , SSO ) ; Assert . assertTrue ( ssoConfig . isDefined ( ) ) ; Assert . assertFalse ( legacyModel . get ( VIRTUAL_SERVER , "default-host" , CONFIGURATION , SSO ) . isDefined ( ) ) ; compare ( ssoConfig , legacyModel . get ( VIRTUAL_SERVER , "default-host" , SSO , CONFIGURATION ) , true ) ; ModelNode mainAccessLog = mainModel . get ( VIRTUAL_SERVER , "default-host" , CONFIGURATION , ACCESS_LOG ) ; Assert . assertTrue ( mainAccessLog . isDefined ( ) ) ; Assert . assertFalse ( legacyModel . get ( VIRTUAL_SERVER , "default-host" , CONFIGURATION , ACCESS_LOG ) . isDefined ( ) ) ; ModelNode legacyAccessLog = legacyModel . get ( VIRTUAL_SERVER , "default-host" , ACCESS_LOG , CONFIGURATION ) ; Assert . assertTrue ( legacyAccessLog . isDefined ( ) ) ; ModelNode mainDir = mainAccessLog . remove ( SETTING ) . get ( DIRECTORY ) ; Assert . assertTrue ( mainDir . isDefined ( ) ) ; Assert . assertFalse ( legacyAccessLog . hasDefined ( SETTING ) ) ; ModelNode legacyDir = legacyAccessLog . remove ( DIRECTORY ) . get ( CONFIGURATION ) ; Assert . assertTrue ( legacyDir . isDefined ( ) ) ; compare ( mainDir , legacyDir ) ; compare ( mainAccessLog , legacyAccessLog , true ) ; } private void testSSLAlias ( KernelServices services , ModelNode noAliasModel , ModelNode aliasModel ) throws Exception { } private void testSSOAlias ( KernelServices services , ModelNode noAliasModel , ModelNode aliasModel ) throws Exception { } private void testAccessLogAlias ( KernelServices services , ModelNode noAliasModel , ModelNode aliasModel ) throws Exception { } private void testAliases ( KernelServices services , ModelNode noAliasModel , ModelNode aliasModel , String [ ] targetAddr , String [ ] aliasAddr ) throws Exception { } private void testChangeAttribute ( KernelServices services , String attributeName , String value1 , String value2 , String [ ] targetAddr , String [ ] aliasAddr ) throws Exception { } private void writeAttribute ( KernelServices services , String name , String value , String ... address ) throws Exception { } private String readAttribute ( KernelServices services , String name , String ... address ) throws Exception { } private ModelNode createOperation ( String operationName , String ... address ) { } private String [ ] getAddress ( String ... addr ) { } }

Fix:
checkSubsystemModelTransformation ( mainServices , modelVersion ) ;