public void testSaveConfig(PluginContainer container) throws Exception {
System.out.print("Test mapping of rhq configuration to augeas tree.");
ApacheAugeasUtil apacheUtil = new ApacheAugeasUtil();
//load augeas tree from temporary folder
String path = ApacheTestConstants.getApacheConfigFilesPath();
AugeasProxy proxy = apacheUtil.initAugeas(path + ApacheTestConstants.ROOT_CONFIG_FILE_NAME, path, path);
AugeasTree tree = proxy.getAugeasTree(ApacheTestConstants.MODULE_NAME, true);
//load augeas tree from temporary folder "updateconfig"
String pathUpdate = ApacheTestConstants.getApacheConfigFilesPathForUpdate();
AugeasProxy proxyUpdate =
apacheUtil.initAugeas(pathUpdate + ApacheTestConstants.ROOT_CONFIG_FILE_NAME, pathUpdate, pathUpdate);
AugeasTree treeUpdate = proxyUpdate.getAugeasTree(ApacheTestConstants.MODULE_NAME, true);
for (Components component : Components.values()) {
List<AugeasNode> nodes = component.getAllNodes(tree);
ConfigurationDefinition configDef =
ApacheConfigurationUtil.getConfigurationDefinition(container, component);