public void testSetSystemPropertiesFromPropertiesFile()
throws ConfigurationException, IOException
{
File file = folder.newFile("sys.properties");
PropertiesConfiguration pconfig = new PropertiesConfiguration();
FileHandler handler = new FileHandler(pconfig);
pconfig.addProperty("fromFile", Boolean.TRUE);
handler.setFile(file);
handler.save();
SystemConfiguration.setSystemProperties(handler.getBasePath(),
handler.getFileName());
SystemConfiguration sconf = new SystemConfiguration();
assertTrue("Property from file not found", sconf.getBoolean("fromFile"));
}