### Question:
OpenWindowHandler extends AbstractBuiltInHandler { static void addParameter(final Map<String, String> paramMap, final String key, final String value, final String defaultValue) { final String checkValue; if ("".equals(value)) { checkValue = null; } else { checkValue = value; } String normalizedValue = normalizeParam(checkValue, defaultValue); if (normalizedValue == null) { normalizedValue = checkValue; } if (normalizedValue != null) { paramMap.put(key, normalizedValue); } }    }### Answer:
@Test public void basicParamTestNoDefault() { OpenWindowHandler.addParameter(paramMap, "test", "hoeba", null); final String value = paramMap.get("test"); assertNotNull(value); assertEquals("hoeba", value); }
@Test public void basicParamTestWithDefault() { OpenWindowHandler.addParameter(paramMap, "test", "hoeba", "check"); final String value = paramMap.get("test"); assertNotNull(value); assertEquals("check", value); }