MultilingualString implements Serializable { public String get(String language) { return language != null ? value.get(language) : get(); } MultilingualString();  MultilingualString(Map<String, String> value); MultilingualString set(String language, String value); MultilingualString set(String value); String get(String language); String get(); boolean contains(String language); boolean containsSimple(); boolean isEmpty(); void remove(String language); Set<String> getLanguages(); Map<String, String> getValue(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static MultilingualString create(String value, String language);  }
@Test void getReturnsNullWhenValueInSpecifiedLanguageIsNotAvailable() { final MultilingualString sut = new MultilingualString(); assertNull(sut.get(LANGUAGE)); }
@Test void getWithNullArgumentReturnsNullWhenNeitherSimpleLiteralNorTranslationsAreAvailable() { final MultilingualString sut = new MultilingualString(); assertNull(sut.get()); }