public void testCreateConfigurationNonExistingFileAndThenSave()
throws ConfigurationException {
File outFile = ConfigurationAssert.getOutFile("save.properties");
Parameters parameters = new Parameters();
FileBasedConfigurationBuilder<PropertiesConfiguration> builder = new FileBasedConfigurationBuilder<PropertiesConfiguration>(
PropertiesConfiguration.class, null, true).configure(parameters
.properties().setFile(outFile));
Configuration config = builder.getConfiguration();
config.setProperty(PROP, 1);
builder.save();
checkSavedConfig(outFile, 1);