File testXmlFile = new File(testDir, "reload.xml");
File testPropsFile = new File(testDir, "reload.properties");
writeFile(testXmlFile, "<xml><xmlReload>0</xmlReload></xml>");
writeFile(testPropsFile, "propsReload = 0");
XMLConfiguration c1 = new XMLConfiguration(testXmlFile);
c1.setReloadingStrategy(new FileAlwaysReloadingStrategy());
PropertiesConfiguration c2 = new PropertiesConfiguration(testPropsFile);
c2.setThrowExceptionOnMissing(true);
c2.setReloadingStrategy(new FileAlwaysReloadingStrategy());
config.addConfiguration(c1);
config.addConfiguration(c2);
assertEquals("Wrong xml reload value", 0, config.getInt("xmlReload"));
assertEquals("Wrong props reload value", 0, config
.getInt("propsReload"));