FileBasedConfigurationBuilder<PropertiesConfiguration> builder =
new FileBasedConfigurationBuilder<PropertiesConfiguration>(
PropertiesConfiguration.class)
.configure(new FileBasedBuilderParametersImpl()
.setFile(file));
PropertiesConfiguration config1 = builder.getConfiguration();
builder.setAutoSave(true);
builder.resetResult();
PropertiesConfiguration config2 = builder.getConfiguration();
assertNotSame("No new configuration created", config1, config2);
config2.setProperty(PROP, 1);
config1.setProperty(PROP, 2);
checkSavedConfig(file, 1);
}