XMLConfiguration config = new XMLConfiguration();
//config.setExpressionEngine(new XPathExpressionEngine());
load(config, testFile2);
config.setProperty("Employee[@attr1]", "3,2,1");
assertEquals("3,2,1", config.getString("Employee[@attr1]"));
new FileHandler(config).save(testSaveFile);
config = new XMLConfiguration();
//config.setExpressionEngine(new XPathExpressionEngine());
load(config, testSaveFile.getAbsolutePath());
config.setProperty("Employee[@attr1]", "1,2,3");
assertEquals("1,2,3", config.getString("Employee[@attr1]"));
config.setProperty("Employee[@attr2]", "one, two, three");
assertEquals("one, two, three", config.getString("Employee[@attr2]"));
config.setProperty("Employee.text", "a,b,d");
assertEquals("a,b,d", config.getString("Employee.text"));
config.setProperty("Employee.Salary", "100,000");
assertEquals("100,000", config.getString("Employee.Salary"));
new FileHandler(config).save(testSaveFile);
XMLConfiguration checkConfig = new XMLConfiguration();
checkConfig.setExpressionEngine(new XPathExpressionEngine());
load(checkConfig, testSaveFile.getAbsolutePath());
assertEquals("1,2,3", checkConfig.getString("Employee/@attr1"));
assertEquals("one, two, three", checkConfig.getString("Employee/@attr2"));