Buggy code:
@ Test public void test720StandaloneFullHaXml ( ) throws Exception { } @ Test public void test720StandaloneFullXml ( ) throws Exception { } @ Test public void test720StandaloneHornetQCollocatedXml ( ) throws Exception { } @ Test public void test720StandaloneJtsXml ( ) throws Exception { } @ Test public void test720StandaloneMinimalisticXml ( ) throws Exception { } @ Test public void test720StandaloneXtsXml ( ) throws Exception { } @ Test public void testEAP620StandaloneFullHaXml ( ) throws Exception { } @ Test public void testEAP620StandaloneFullXml ( ) throws Exception { } @ Test public void testEAP620StandaloneHornetQCollocatedXml ( ) throws Exception { } @ Test public void testEAP620StandaloneJtsXml ( ) throws Exception { } @ Test public void testEAP620StandaloneMinimalisticXml ( ) throws Exception { } @ Test public void testEAP620StandaloneXtsXml ( ) throws Exception { } private ModelNode standaloneXmlTest ( File original ) throws Exception { } @ Test public void testHostXml ( ) throws Exception { } @ Test public void test710HostXml ( ) throws Exception { } @ Test public void test711HostXml ( ) throws Exception { } @ Test public void test712HostXml ( ) throws Exception { } @ Test public void test713HostXml ( ) throws Exception { } @ Test public void test720HostXml ( ) throws Exception { } @ Test public void testEAP620HostXml ( ) throws Exception { } private void hostXmlTest ( final File original ) throws Exception { } @ Test @ TargetsContainer ( "class-jbossas" ) public void testDomainXml ( ) throws Exception { } @ Test @ TargetsContainer ( "class-jbossas" ) public void test710DomainXml ( ) throws Exception { } @ Test @ TargetsContainer ( "class-jbossas" ) public void test711DomainXml ( ) throws Exception { } @ Test @ TargetsContainer ( "class-jbossas" ) public void test712DomainXml ( ) throws Exception { } @ Test @ TargetsContainer ( "class-jbossas" ) public void test713DomainXml ( ) throws Exception { } @ Test @ TargetsContainer ( "class-jbossas" ) public void test720DomainXml ( ) throws Exception { } @ Test @ TargetsContainer ( "class-jbossas" ) public void testEAP620DomainXml ( ) throws Exception { } private ModelNode domainXmlTest ( File original ) throws Exception { } private void compare ( ModelNode node1 , ModelNode node2 ) { } private static void validateJsfProfiles ( ModelNode model ) { } private static void validateJsfSubsystem ( ModelNode model ) { } private ModelNode loadServerModel ( final File file ) throws Exception { } private ModelNode loadHostModel ( final File file ) throws Exception { } private ModelNode loadDomainModel ( File file ) throws Exception { } public ModelController createController ( final ProcessType processType , final ModelNode model , final ParseAndMarshalModelsTestCase . Setup registration ) throws InterruptedException { } private void executeOperations ( ModelController controller , List < ModelNode > ops ) { } private File getOriginalStandaloneXml ( String profile ) throws FileNotFoundException { } private File getOriginalHostXml ( final String profile ) throws FileNotFoundException { } private File getOriginalDomainXml ( final String profile ) throws FileNotFoundException { } private File getLegacyConfigFile ( String type , String profile ) throws FileNotFoundException { } private File getDocsExampleConfigFile ( String name ) throws FileNotFoundException { } private File getGeneratedExampleConfigFile ( String name ) throws FileNotFoundException { } private File getHostConfigDir ( ) throws FileNotFoundException { } private File getDomainConfigDir ( ) throws FileNotFoundException { } private boolean isInContainer ( ) { } interface Setup { void setup ( Resource resource , ManagementResourceRegistration rootRegistration , DelegatingConfigurableAuthorizer authorizer ) { } } class ModelControllerService extends AbstractControllerService { private final CountDownLatch latch = new CountDownLatch ( 2 ) ; private final ModelNode model ; private final ParseAndMarshalModelsTestCase . Setup registration ; ModelControllerService ( final ProcessType processType , final ParseAndMarshalModelsTestCase . Setup registration , final ModelNode model ) { } @ Override public void start ( StartContext context ) throws StartException { } @ Override protected void bootThreadDone ( ) { } <START_BUG> protected void initModel ( Resource rootResource , ManagementResourceRegistration rootRegistration , Resource modelControllerResource ) { <END_BUG> registration . setup ( rootResource , rootRegistration , authorizer ) ; rootRegistration . registerOperationHandler ( new org . jboss . as . controller . SimpleOperationDefinitionBuilder ( "capture-model" , new org . jboss . as . controller . descriptions . NonResolvingResourceDescriptionResolver ( ) ) . build ( ) , new OperationStepHandler ( ) { public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { model . set ( Tools . readModel ( context . readResource ( EMPTY_ADDRESS ) ) ) ; } } ) ; rootResource . registerChild ( PathElement . pathElement ( CORE_SERVICE , MANAGEMENT ) , Factory . create ( ) ) ; rootResource . registerChild ( PathElement . pathElement ( CORE_SERVICE , SERVICE_CONTAINER ) , Factory . create ( ) ) ; } } private static class MockContentRepository implements ContentRepository { @ Override public byte [ ] addContent ( InputStream stream ) throws IOException { } @ Override public VirtualFile getContent ( byte [ ] hash ) { } @ Override public boolean syncContent ( byte [ ] hash ) { } @ Override public boolean hasContent ( byte [ ] hash ) { } @ Override public void removeContent ( byte [ ] hash , Object reference ) { } @ Override public void addContentReference ( byte [ ] hash , Object reference ) { } } private static class MockFileRepository implements HostFileRepository { @ Override public File getFile ( String relativePath ) { } @ Override public File getConfigurationFile ( String relativePath ) { } @ Override public File [ ] getDeploymentFiles ( byte [ ] deploymentHash ) { } @ Override public File getDeploymentRoot ( byte [ ] deploymentHash ) { } @ Override public void deleteDeployment ( byte [ ] deploymentHash ) { } } private static class MockVaultReader extends RuntimeVaultReader { } private static class MockLocalDomainControllerAddHandler extends LocalDomainControllerAddHandler { protected MockLocalDomainControllerAddHandler ( ) { } @ Override protected void initializeDomain ( ) { } } private static class MockRemoteDomainControllerAddHandler extends RemoteDomainControllerAddHandler { protected MockRemoteDomainControllerAddHandler ( ) { }

Fix:
protected void initModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) {