@Test
public void testSaveToCustomURL() throws Exception
{
// save the configuration to a custom URL
URL url = new URL("foo", "", 0, "./target/testsave-custom-url.properties", new FileURLStreamHandler());
FileHandler handlerSave = new FileHandler(conf);
handlerSave.save(url);
// reload the configuration
PropertiesConfiguration config2 = new PropertiesConfiguration();
FileHandler handlerLoad = new FileHandler(config2);
handlerLoad.load(url);
assertEquals("true", config2.getString("configuration.loaded"));
}