protected static Object getOrDefault(Map<String, Object> configMap, String key, Object defaultValue) {
        if (configMap.containsKey(key))
            return configMap.get(key);

        return defaultValue;
    }
@Test
    public void testGetOrDefault() {
        String existingKey = "exists";
        String missingKey = "missing";
        String value = "value";
        String defaultValue = "default";
        Map<String, Object> map = new HashMap<>();
        map.put("exists", "value");

        assertEquals(SSLUtils.getOrDefault(map, existingKey, defaultValue), value);
        assertEquals(SSLUtils.getOrDefault(map, missingKey, defaultValue), defaultValue);
    }