{
final String rootName = "rootElement";
final String xml = "<" + rootName + "><test>true</test></" + rootName
+ ">";
conf.clear();
new FileHandler(conf).load(new StringReader(xml));
XMLConfiguration copy = new XMLConfiguration(conf);
assertEquals("Wrong name of root element", rootName, copy
.getRootElementName());
new FileHandler(copy).save(testSaveConf);
copy = new XMLConfiguration();
load(copy, testSaveConf.getAbsolutePath());
assertEquals("Wrong name of root element after save", rootName, copy
.getRootElementName());
}