public static String getLocalizedString(String key) {
        Locale locale = JiveGlobals.getLocale();

        try {
            ResourceBundle bundle = ResourceBundle.getBundle(resourceBaseName, locale);
            return getLocalizedString(key, locale, null, bundle);
        } catch (MissingResourceException mre) {
            Log.error(mre.getMessage());
            return key;
        }
    }
@Test
    public void getLocalizedStringWillReturnASensibleDefaultValue() {

        final String key = "if.this.key.exists.the.test.will.fail";

        MatcherAssert.assertThat(LocaleUtils.getLocalizedString(key), is("???" + key + "???"));
    }