EsReaderConfiguration { public ElasticsearchConfiguration getElasticsearch() { return elasticsearch; }  ElasticsearchConfiguration getElasticsearch(); void setElasticsearch(ElasticsearchConfiguration elasticsearch); KafkaConfiguration getKafka(); void setKafka(KafkaConfiguration kafka); PrometheusConfiguration getPrometheus(); void setPrometheus(PrometheusConfiguration prometheus);  }
@Test public void getConfig() throws IOException { EsReaderConfiguration config = loadConfig(EsReaderConfiguration.class, "garmadon-config.yml"); assertEquals("elasticsearch", config.getElasticsearch().getHost()); assertEquals(500, config.getElasticsearch().getBulkActions()); assertEquals(10, config.getElasticsearch().getBulkSizeMB()); }