Source:
<code>public void test01_ProfileCloneIgnoredWithIgnoreUnusedConfiguration() throws Exception { final DomainClient masterClient = masterLifecycleUtil.getDomainClient(); final DomainClient slaveClient = slaveLifecycleUtil.getDomainClient(); try { final ModelNode originalSlaveDc = DomainTestUtils.executeForResult( Util.getReadAttributeOperation(SLAVE_ADDR, DOMAIN_CONTROLLER), masterClient).get(REMOTE); originalSlaveDc.protect(); Assert.assertFalse(originalSlaveDc.hasDefined(IGNORE_UNUSED_CONFIG)); try { ModelNode newSlaveDc = originalSlaveDc.clone(); newSlaveDc.get(IGNORE_UNUSED_CONFIG).set(true); writeSlaveDomainController(slaveClient, newSlaveDc); <START> reloadSlave(slaveLifecycleUtil); <END> ModelNode clone = Util.createEmptyOperation(CLONE, PathAddress.pathAddress(PROFILE, ORIGINAL_PROFILE)); clone.get(TO_PROFILE).set(NEW_PROFILE); DomainTestUtils.executeForResult(clone, masterClient); try { List<String> originalSubsystems = getSubsystems(ORIGINAL_PROFILE, masterClient); List<String> newSubsystems = getSubsystems(NEW_PROFILE, masterClient); assertEquals(originalSubsystems, newSubsystems); List<String> slaveSubsystems = getChildNames(PathAddress.EMPTY_ADDRESS, PROFILE, slaveClient); Assert.assertTrue(slaveSubsystems.contains("default")); Assert.assertFalse(slaveSubsystems.contains(NEW_PROFILE)); } finally { DomainTestUtils.executeForResult(Util.createRemoveOperation(PathAddress.pathAddress(PROFILE, NEW_PROFILE)), masterClient); } } finally { writeSlaveDomainController(slaveClient, originalSlaveDc); reloadSlave(slaveLifecycleUtil); } } finally { IoUtils.safeClose(slaveClient); IoUtils.safeClose(masterClient); } }</code><technical_language>I plan ensure Ken's work is merged dealing this, more critical, assume remove this this PR merged</technical_language>

Target:
public void test01_ProfileCloneIgnoredWithIgnoreUnusedConfiguration() throws Exception { final DomainClient masterClient = masterLifecycleUtil.getDomainClient(); final DomainClient slaveClient = slaveLifecycleUtil.getDomainClient(); try { final ModelNode originalSlaveDc = DomainTestUtils.executeForResult( Util.getReadAttributeOperation(SLAVE_ADDR, DOMAIN_CONTROLLER), masterClient).get(REMOTE); originalSlaveDc.protect(); Assert.assertFalse(originalSlaveDc.hasDefined(IGNORE_UNUSED_CONFIG)); try { ModelNode newSlaveDc = originalSlaveDc.clone(); newSlaveDc.get(IGNORE_UNUSED_CONFIG).set(true); writeSlaveDomainController(slaveClient, newSlaveDc); reloadSlave(slaveLifecycleUtil); ModelNode clone = Util.createEmptyOperation(CLONE, PathAddress.pathAddress(PROFILE, ORIGINAL_PROFILE)); clone.get(TO_PROFILE).set(CLONED_PROFILE); DomainTestUtils.executeForResult(clone, masterClient); try { List<String> originalSubsystems = getSubsystems(ORIGINAL_PROFILE, masterClient); List<String> newSubsystems = getSubsystems(CLONED_PROFILE, masterClient); assertEquals(originalSubsystems, newSubsystems); List<String> slaveSubsystems = getChildNames(PathAddress.EMPTY_ADDRESS, PROFILE, slaveClient); Assert.assertTrue(slaveSubsystems.contains(ORIGINAL_PROFILE)); Assert.assertFalse(slaveSubsystems.contains(CLONED_PROFILE)); } finally { DomainTestUtils.executeForResult(Util.createRemoveOperation(PathAddress.pathAddress(PROFILE, CLONED_PROFILE)), masterClient); } } finally { writeSlaveDomainController(slaveClient, originalSlaveDc); reloadSlave(slaveLifecycleUtil); } } finally { IoUtils.safeClose(slaveClient); IoUtils.safeClose(masterClient); } }