### Question:
LocalizedString extends Base { @JsonIgnore public static LocalizedString ofStringToStringMap(final Map<String, String> translations) { requireNonNull(translations); return translations.entrySet().stream() .map(localeEntry -> { final Locale locale = Locale.forLanguageTag(localeEntry.getKey()); return LocalizedStringEntry.of(locale, localeEntry.getValue()); }) .collect(LocalizedString.streamCollector()); } @JsonCreator private  LocalizedString(final Map<Locale, String> translations); @JsonIgnore static LocalizedString of(); static LocalizedString empty(); @JsonIgnore static LocalizedString of(final Locale locale, final String value); @JsonIgnore static LocalizedString of(final Locale locale1, final String value1, final Locale locale2, final String value2); @JsonIgnore static LocalizedString of(final Map<Locale, String> translations); @JsonIgnore static LocalizedString ofStringToStringMap(final Map<String, String> translations); LocalizedString plus(final Locale locale, final String value); @Nonnull Optional<String> find(final Locale locale); @Nullable String get(final Locale locale); @Nullable String get(final String languageTag); @Nonnull Optional<String> find(final Iterable<Locale> locales); @Nullable String get(final Iterable<Locale> locales); @Nullable String getTranslation(final Iterable<Locale> locales); LocalizedString mapValue(final BiFunction<Locale, String, String> function); Stream<LocalizedStringEntry> stream(); static Collector<LocalizedStringEntry, ?, LocalizedString> streamCollector(); LocalizedString slugified(); LocalizedString slugifiedUnique(); @JsonIgnore @Nonnull Set<Locale> getLocales(); @Override String toString(); static TypeReference<LocalizedString> typeReference(); static LocalizedString ofEnglish(final String translationForEnglish);  }### Answer:
@Test public void ofStringToStringMap() { final Map<String, String> map = new HashMap<>(); map.put("de", "Jacken"); map.put("en", "Jackets"); map.put("it", "Giacche"); final LocalizedString actual = LocalizedString.ofStringToStringMap(map); final LocalizedString expected = LocalizedString .of(Locale.GERMAN, "Jacken") .plus(Locale.ENGLISH, "Jackets") .plus(Locale.ITALIAN, "Giacche"); assertThat(actual).isEqualTo(expected); }