Lang extends SubtagSet { public Subtag getLanguage() { return getPrimary(); } Lang();  Lang(Locale locale);  Lang(String lang);   Lang(Subtag primary); Subtag getLanguage(); Locale getLocale(); Subtag getExtLang(); Subtag getScript(); Subtag getRegion(); Subtag getVariant(); Subtag getExtension(); Subtag getPrivateUse(); Range asRange(); Lang clone(); Lang canonicalize(); boolean isDeprecated(); Lang getParent(); boolean isChildOf(Lang lang); boolean isParentOf(Lang lang); static Lang parse(String lang); static String fromLocale(Locale locale);  }
@Test public void testGetLanguage() { Lang lang = new Lang("de"); assertEquals(new Subtag(Language.DE), lang.getLanguage()); }