I18n { public String getString(Locale locale, String key) { try { if (locale == null) return getString(key); return getResourceBundle(locale).getString(key); } catch (Throwable e) { return key; } } I18n();  I18n(String bundle); void setConfiguration(
			org.gofleet.configuration.Configuration configuration); String getString(Locale locale, String key); String getString(String key); String getString(Locale locale, String key, Object... params);  }
@Test public void testGetStringLocaleString() { final String path = "resourceBundles/i18n_string"; I18n i18n = new I18n(path); assertEquals("Esto es el valor 1", i18n.getString(new Locale("es", "ES"), "value1")); assertEquals("Esto es el valor 2", i18n.getString(new Locale("es", "ES"), "value2")); assertEquals("Esto es el valor 3",i18n.getString(new Locale("es", "ES"), "value 3")); assertEquals("This is value 1", i18n.getString("value1")); assertEquals("This is value 2",i18n.getString("value2")); assertEquals("This is value 3", i18n.getString("value 3")); }