*/
@Test
public void testSaveWithDataConfig() throws ConfigurationException
{
conf = new PropertiesConfiguration();
FileHandler handler = new FileHandler(conf);
handler.setFile(testSavePropertiesFile);
DataConfiguration dataConfig = new DataConfiguration(conf);
dataConfig.setProperty("foo", "bar");
assertEquals("Property not set", "bar", conf.getString("foo"));
handler.save();
PropertiesConfiguration config2 = new PropertiesConfiguration();
load(config2, testSavePropertiesFile.getAbsolutePath());
assertEquals("Property not saved", "bar", config2.getString("foo"));
}