public String map(I18n i18n) {
return i18n.getIsoCode();
}
});
Map<String, Map<String, String>> i18nContent =
new Gson().fromJson(new InputStreamReader(I18n.class.getResourceAsStream("/gherkin/i18n.json"), "UTF-8"), new TypeToken<Map<String, Map<String, String>>>() {}.getType());
List<String> i18nContentKeys = extractSortedListOfMapKeys(i18nContent);
assertEquals(i18nContentKeys, isoCodes);
assertThat(isoCodes, hasItem("ar"));
assertThat(isoCodes, hasItem("en"));