### Question:
Languages { public static Locale asLocale(String language) { return asLocale(language, false); }  static Locale asLocale(String language); static Locale asLocale(String language, boolean rootAsDefault); static String asString(Locale locale);  }### Answer:
@Test void asLocaleTest() throws Exception { assertEquals("de", Languages.asLocale("de").getLanguage()); assertEquals("en", Languages.asLocale("en").getLanguage()); assertNull(Languages.asLocale(null)); assertNotNull(Languages.asLocale(null, true)); assertEquals(Locale.ROOT, Languages.asLocale(null, true)); }