I18n { protected static String getMessage(final String key) { if (messages == null) { setLanguage(DEFAULT_LANG); } return messages.getString(key); } private  I18n(); static void setLanguage(final String language);  }
@Test public void testGetMessage() { System.out.println("getMessage"); String language = "de"; I18n.setLanguage(language); Assert.assertTrue("'Kuh' must be there somewhere or it's not German", I18n.getMessage("e").contains("Kuh")); }