//System.out.println(executeCommand("fabric:profile-list"));
ModuleContext moduleContext = RuntimeLocator.getRequiredRuntime().getModuleContext();
ServiceProxy<FabricService> fabricProxy = ServiceProxy.createServiceProxy(moduleContext, FabricService.class);
try {
FabricService fabricService = fabricProxy.getService();
CuratorFramework curator = fabricService.adapt(CuratorFramework.class);
Set<Container> containers = ContainerBuilder.create(1, 1).withName("basic.cntG").withProfiles("default").assertProvisioningResult().build(fabricService);
try {
Container cntG = containers.iterator().next();
Assert.assertEquals("manualip", getSubstitutedPath(curator, ZkPath.CONTAINER_RESOLVER.getPath(cntG.getId())));
Assert.assertEquals("manualip", fabricService.getCurrentContainer().getResolver());
//We stop the config admin bridge, since the next step is going to hung the container if we do propagate the change to config admin.
//new BundleUtils(bundleContext).findAndStopBundle("io.fabric8.fabric-configadmin");
//We want to make sure that the child points to the parent, so we change the parent resolvers and assert.
System.out.println(CommandSupport.executeCommand("fabric:container-resolver-set --container root localip"));