### Question:
RedPenService { public Map<String, RedPen> getRedPens() { return redPens; } RedPenService(ServletContext context); RedPen getRedPen(String lang); RedPen getRedPenFromJSON(JSONObject requestJSON); RedPen getRedPen(String lang, Map<String, Map<String, String>> validatorProperties); Map<String, RedPen> getRedPens(); static String getOrDefault(JSONObject json, String property, String defaultValue);  }### Answer:
@Test void defaultConfigurations() throws Exception { RedPenService service = new RedPenService(null); Map<String, RedPen> redPens = service.getRedPens(); assertEquals("en", redPens.get("default").getConfiguration().getLang()); assertEquals("en", redPens.get("en").getConfiguration().getLang()); assertEquals("ja", redPens.get("ja").getConfiguration().getLang()); assertEquals("zenkaku", redPens.get("ja").getConfiguration().getVariant()); assertEquals("ja", redPens.get("ja.zenkaku2").getConfiguration().getLang()); assertEquals("zenkaku2", redPens.get("ja.zenkaku2").getConfiguration().getVariant()); assertEquals("ja", redPens.get("ja.hankaku").getConfiguration().getLang()); assertEquals("hankaku", redPens.get("ja.hankaku").getConfiguration().getVariant()); assertTrue(redPens.values().stream().allMatch(r -> r.getConfiguration().isSecure())); }