File file = new File("src/test/resources/test.properties");
populateFile(file, "test.host=12312,123213", "test.host1=13212");
AbstractConfiguration.setDefaultListDelimiter(',');
DynamicURLConfiguration config = new DynamicURLConfiguration(0, 500, false, file.toURI().toString());
Thread.sleep(1000);
Assert.assertEquals(13212, config.getInt("test.host1"));
Thread.sleep(1000);
populateFile(file, "test.host=12312,123213", "test.host1=13212");
populateFile(file, "test.host=12312,123213", "test.host1=13212");
CopyOnWriteArrayList writeList = new CopyOnWriteArrayList();
writeList.add("12312");
writeList.add("123213");
config.setProperty("sample.domain", "google,yahoo");
Assert.assertEquals(writeList, config.getProperty("test.host"));
}