I18N { public static Locale getLocale() { log.debug("Lookup locale-provider over serviceloader"); LocaleProvider localeProvider = LocaleProviderFactory.newInstance().newLocaleProvider(); return localeProvider.getLocale(); } private  I18N(); static Locale getLocale(); static ResourceBundle getBundle(Locale locale); static ResourceBundle getBundle(); static String gettext(ResourceBundle bundle, String msgid); static String gettext(Locale locale, String msgid); static String gettext(String msgid); static String pgettext(ResourceBundle bundle, String msgctx, String msgid); static String pgettext(Locale locale, String msgctx, String msgid); static String pgettext(String msgctx, String msgid); static String ngettext(ResourceBundle bundle, String msgid, String msgidPlural, long n); static String ngettext(Locale locale, String msgid, String msgidPlural, long n); static String ngettext(String msgid, String msgidPlural, long n); static String npgettext(ResourceBundle bundle, String msgctx, String msgid, String msgidPlural, long n); static String npgettext(Locale locale, String msgctx, String msgid, String msgidPlural, long n); static String npgettext(String msgctx, String msgid, String msgidPlural, long n); static String translate(ResourceBundle bundle, String context, String message, String plural, long n,
            Object... params); static String mark(String message); static String tr(String message, Object... params); static String tr(Locale locale, String message, Object... params); static String tr(ResourceBundle bundle, String message, Object... params); static String trc(String context, String message, Object... params); static String trc(Locale locale, String context, String message, Object... params); static String trc(ResourceBundle bundle, String context, String message, Object... params); static String trn(String message, String plural, long n, Object... params); static String trn(Locale locale, String message, String plural, long n, Object... params); static String trn(ResourceBundle bundle, String message, String plural, long n, Object... params); static String trnc(String context, String message, String plural, long n, Object... params); static String trnc(Locale locale, String context, String message, String plural, long n, Object... params); static String trnc(ResourceBundle bundle, String context, String message, String plural, long n,
            Object... params);  }
@Test public void testGetLocale() { Locale.setDefault(Locale.GERMANY); Assert.assertEquals(Locale.GERMANY, I18N.getLocale()); Locale.setDefault(Locale.JAPAN); Assert.assertEquals(Locale.JAPAN, I18N.getLocale()); }