Configuration { public static Locale getLocale() { String tag = get(LOCALE_KEY); if (tag == null) { return Locale.ROOT; } else { String[] splitTag = tag.split("_", MAX_LOCALE_ARGUMENTS); if (splitTag.length == 1) { return new Locale(splitTag[0]); } else if (splitTag.length == 2) { return new Locale(splitTag[0], splitTag[1]); } else { return new Locale(splitTag[0], splitTag[1], splitTag[2]); } } } private  Configuration(); static Locale getLocale(); static boolean isEscapingEnabled(); static String get(final String key); static Map<String, String> getSiblings(final String prefix); static Map<String, String> getChildren(final String key); static void set(final String key, final String value); static void replace(final Map<String, String> configuration); static String resolve(final String value, final Resolver resolver); static void mergeSystemProperties(final Properties properties); static void resolveProperties(final Properties properties, final Resolver... resolvers); static boolean isFrozen();  }
@Test public void defaultLocale() { Locale locale = Configuration.getLocale(); assertThat(locale).isEqualTo(Locale.ROOT); }