### Question:
ModulesYamlConfigLoader implements ModulesConfigLoader { @Override public List<String> loadStringListOrDefault(String moduleName, String property, List<String> defaultValue) { JsonNode propertyNode = loadPropertyNode(moduleName, property); if (propertyNode == null || propertyNode.isNull()) { return defaultValue; } List<String> values = new ArrayList<>(); propertyNode.iterator().forEachRemaining(node -> values.add(node.asText())); return values; } ModulesYamlConfigLoader();  ModulesYamlConfigLoader(String modulesDirPath); @Override String loadString(String moduleName, String property); @Override String loadStringOrDefault(String moduleName, String property, String defaultValue); @Override Integer loadInteger(String moduleName, String property); @Override Integer loadIntegerOrDefault(String moduleName, String property, Integer defaultValue); @Override List<String> loadStringList(String moduleName, String property); @Override List<String> loadStringListOrDefault(String moduleName, String property, List<String> defaultValue); @Override List<Integer> loadIntegerList(String moduleName, String property); @Override List<Integer> loadIntegerListOrDefault(String moduleName, String property, List<Integer> defaultValue);  }### Answer:
@Test public void testLoadStringListPropertyReturnsValueIfFound() { List<String> defaultValue = new ArrayList<>(); List<String> values = loader.loadStringListOrDefault(CONFIG_FILE, "stringList", defaultValue); assertThat(values).containsExactly("one", "two"); }
@Test public void testLoadStringListPropertyReturnsDefaultIfNotFound() { List<String> defaultValue = new ArrayList<>(); List<String> values = loader.loadStringListOrDefault(CONFIG_FILE, NOT_EXISTING_PROPERTY, defaultValue); assertThat(values).isEqualTo(defaultValue); }
@Test public void testLoadStringListPropertyReturnsDefaultIfNullValueFound() { List<String> defaultValue = new ArrayList<>(); List<String> values = loader.loadStringListOrDefault(CONFIG_FILE, NULL_PROPERTY, defaultValue); assertThat(values).isEqualTo(defaultValue); }