@Test
public void testCycleElasticsearchUrls() throws Exception {

	CorePlugin corePlugin = ConfigurationRegistry.builder()
			.addOptionProvider(new CorePlugin())
			.addConfigSource(new SimpleSource("test")
					.add("stagemonitor.reporting.elasticsearch.url", "http://bla:1/,http://bla:2,http://bla:3"))
			.build()
			.getConfig(CorePlugin.class);
	assertThat(corePlugin.getElasticsearchUrl().toString()).isEqualTo("http://bla:1");
	assertThat(corePlugin.getElasticsearchUrl().toString()).isEqualTo("http://bla:2");
	assertThat(corePlugin.getElasticsearchUrl().toString()).isEqualTo("http://bla:3");
	assertThat(corePlugin.getElasticsearchUrl().toString()).isEqualTo("http://bla:1");
	assertThat(corePlugin.getElasticsearchUrl().toString()).isEqualTo("http://bla:2");
	assertThat(corePlugin.getElasticsearchUrl().toString()).isEqualTo("http://bla:3");
}