public void testCopyConfig() throws Exception {
InputStream in = new ByteArrayInputStream(CONFIG.getBytes());
PluginType pluginType = PluginXmlUtil.loadPluginMetadata(in);
List<GbeanType> gbeans = pluginType.getPluginArtifact().get(0).getConfigXmlContent().get(0).getGbean();
assertEquals(2, gbeans.size());
GBeanOverride override = new GBeanOverride(gbeans.get(0), new JexlExpressionParser());
String attributeValue = override.getAttribute("defaultEnvironment");
Document expectedDoc = DOMUtils.load(ATTRIBUTE_VALUE);
Document actualDoc = DOMUtils.load(attributeValue);
DOMUtils.compareNodes(expectedDoc, actualDoc);