I18N { public String translate(String key, String language) { return translations.get(new Entry(key, language)); } I18N(String resourcePath); String translate(String key, String language);  }
@Test void shouldGetTranslationForExistingKey() { final I18N translator = new I18N("data/multilinguism/translation.csv"); assert translator.translate("item1", "eng").equals("English"); }
@Test void shouldThrowExceptionForNonExistingKey() { final I18N translator = new I18N("data/multilinguism/translation.csv"); assert translator.translate("item9", "eng") == null; }