LanguagesImportUtility { public Map<String, List<String>> getLanguageMap() { return languageMap; } LanguagesImportUtility(InputStream inputStream); Map<String, List<String>> getLanguageMap(); @NonNull ImportSpec buildImportSpec(JSONObject json);  }
@Test public void shouldParseFileCorrectly() throws IOException { Map<String, List<String>> actualValues = languagesImportUtility.getLanguageMap(); assertEquals(expectedValues, actualValues); }
@Test public void shouldRemoveCharactersAfterTwoLetterIsoCode() throws IOException { Map<String, List<String>> actualValues = languagesImportUtility.getLanguageMap(); assertEquals(expectedValues, actualValues); }
@Test public void shouldReturnEmptyMapIfInputStreamIsNull() { LanguagesImportUtility emptyLanguagesImportUtility = new LanguagesImportUtility(null); assertEquals(Collections.EMPTY_MAP, emptyLanguagesImportUtility.getLanguageMap()); }