### Question:
Config { public static String getOrDefault (String section, String key, String defaultValue) { String option = section + "." + key; if (!values.containsKey(option)) { return defaultValue; } return values.get(option); } protected  Config(); static void load(File file); static void load(File file, boolean skipExampleConfig); static void loadDir(File dir); static String get(String section, String key); static String getOrDefault(String section, String key, String defaultValue); static boolean getBool(String section, String key); static int getInt(String section, String key); static float getFloat(String section, String key); static void set(String section, String key, String value); static void reload(); static void clear(); static boolean forceExit; }### Answer:
@Test public void testGetOrDefault () { assertEquals("defaultValue", Config.getOrDefault("section", "not-existent-key", "defaultValue")); Config.values.put("section.not-existent-key", "test-value"); assertEquals("test-value", Config.getOrDefault("section", "not-existent-key", "defaultValue")); }