LocalizableContent extends LocalizableObject implements LocalizationListener, Cloneable { public T get() { Language language = getLanguage(); if (language == null) return null; return get(getLanguage(), false); } LocalizableContent();  LocalizableContent(Language language);  LocalizableContent(LocalizableObject localizable); void clear(); boolean isEmpty(); int size(); Collection<T> values(); @Override void disableLanguage(Language language); T put(T content, Language language); T get(); T get(Language language); T get(Language language, boolean force); void switchedTo(Language language, Language requestedLanguage); @SuppressWarnings("unchecked") Object clone(); String toString(Language language, boolean force);  }
@Test public void testGet() { assertEquals(englishLocale.getDisplayLanguage(englishLocale), content.get()); assertEquals(englishLocale.getDisplayLanguage(englishLocale), content.get(italian)); assertTrue(content.get(italian, true) == null); }
@Test public void testGetLanguage() { assertEquals(english, content.getLanguage()); assertEquals(englishLocale.getDisplayLanguage(englishLocale), content.get(italian)); }
@Test public void testGetLanguageBoolean() { assertEquals(englishLocale.getDisplayLanguage(englishLocale), content.get(italian, false)); assertTrue(content.get(italian, true) == null); }