@Test
public void testWrite() throws Exception {
PentahoSystem.clearObjectFactory();
IConfiguration c =
new PropertiesFileConfiguration( "test", new File( "test-res/SystemConfig/system/test.properties" ) );
systemConfig.registerConfiguration( c );
IConfiguration configuration = systemConfig.getConfiguration( "test" );
Properties props = configuration.getProperties();
props.setProperty( "someProperty", "new value" );
configuration.update( props );
FileSystemXmlApplicationContext context =
new FileSystemXmlApplicationContext( "test-res/SystemConfig/system/testPropertyPlaceholders.spring.xml" );
context.refresh();
assertNotNull( context.getBean( "testPlaceHolder" ) );
assertEquals( "new value", context.getBean( "testPlaceHolder" ) );
props = configuration.getProperties();
props.setProperty( "someProperty", "A dog's tale" );
configuration.update( props );
}