### Question:
EcLogYamlConfigLoader { public static EcLogYamlConfig load(ToolOptions options) { return getConfigFileLocations(options).stream() .filter(Files::isReadable) .map(EcLogYamlConfigLoader::loadConfigFromUrl) .findFirst() .orElse(DEFAULT_CONFIG); } private  EcLogYamlConfigLoader(); static EcLogYamlConfig load(ToolOptions options);  }### Answer:
@Test public void testLoadWithoutConfigFileGivesDefaultValues() { ToolOptions options = ToolOptions.builder().withPath(LOG_DIR).build(); EcLogYamlConfig config = EcLogYamlConfigLoader.load(options); assertDefaultConfig(config); }
@Test public void testLoadWithConfigFromFileInLogDirPath() { ToolOptions options = ToolOptions.builder().withPath(CONFIG_FILE_DIR).build(); EcLogYamlConfig config = EcLogYamlConfigLoader.load(options); assertCustomConfig(config); }
@Test public void testLoadWithConfigFileProvidedOnCommandLine() { ToolOptions options = ToolOptions.builder().withPath(LOG_DIR).withConfig(CONFIG_FILE).build(); EcLogYamlConfig config = EcLogYamlConfigLoader.load(options); assertCustomConfig(config); }