### Question:
ExporterConfig { public MBeanSelector[] getQueries() { if (queries == null) return NO_QUERIES; return queries; } private  ExporterConfig(Map<String, Object> yaml); static ExporterConfig createEmptyConfig(); static ExporterConfig loadConfig(InputStream inputStream); Map<String, Object> scrapeMetrics(MBeanSelector selector, JsonObject response); MBeanSelector[] getEffectiveQueries(); MBeanSelector[] getQueries(); static ExporterConfig loadConfig(Map<String, Object> yamlConfig); QuerySyncConfiguration getQuerySyncConfiguration(); Integer getRestPort(); void append(ExporterConfig config2); void replace(ExporterConfig config2); @Override String toString();  }### Answer:
@Test public void afterReplaceWithEmptyConfig_configHasNoQueries() { ExporterConfig config = getReplacedConfiguration(SERVLET_CONFIG, ""); assertThat(config.getQueries(), arrayWithSize(0)); }
@Test public void afterAppendWithNewTopLevelQuery_configHasMultipleTopLevelQueries() { ExporterConfig config = getAppendedConfiguration(SERVLET_CONFIG, PARTITION_CONFIG); assertThat(config.getQueries(), arrayWithSize(2)); }
@Test public void afterAppendWithMatchingTopLevelQuery_configHasMergedQueries() { ExporterConfig config = getAppendedConfiguration(SERVLET_CONFIG, WORK_MANAGER_CONFIG); assertThat(config.getQueries(), arrayWithSize(1)); }
@Test public void whenSpecified_readQueriesFromYaml() { ExporterConfig config = loadFromString(SERVLET_CONFIG); assertThat(config.getQueries(), arrayWithSize(1)); }