BrokerCfg { public Map<String, ExporterCfg> getExporters() { return exporters; }  void init(final String brokerBase); void init(final String brokerBase, final Environment environment); NetworkCfg getNetwork(); void setNetwork(final NetworkCfg network); ClusterCfg getCluster(); void setCluster(final ClusterCfg cluster); ThreadsCfg getThreads(); void setThreads(final ThreadsCfg threads); DataCfg getData(); void setData(final DataCfg logs); Map<String, ExporterCfg> getExporters(); void setExporters(final Map<String, ExporterCfg> exporters); EmbeddedGatewayCfg getGateway(); BrokerCfg setGateway(final EmbeddedGatewayCfg gateway); BackpressureCfg getBackpressure(); BrokerCfg setBackpressure(final BackpressureCfg backpressure); Duration getStepTimeout(); void setStepTimeout(final Duration stepTimeout); boolean isExecutionMetricsExporterEnabled(); void setExecutionMetricsExporterEnabled(final boolean executionMetricsExporterEnabled); @Override String toString(); String toJson();  }
@Test public void shouldReadExporterConfigWithMinimalInfo() { final ExporterCfg expected = new ExporterCfg(); expected.setClassName("io.zeebe.exporter.ElasticsearchExporter"); final BrokerCfg actual = TestConfigReader.readConfig("exporters", environment); assertThat(actual.getExporters()).hasSize(1); assertThat(actual.getExporters()).containsKey("elasticsearch"); assertThat(actual.getExporters().get("elasticsearch")).isEqualTo(expected); }