XmlLangImpl extends XmlAttributeImpl implements
		XmlLang { public Locale getLocale() { return language.getLocale(); } XmlLangImpl(String lang);  XmlLangImpl(Locale lang); Locale getLocale();  }
@Test public void testXmlLangImplLocale() { XmlLangImpl attr = new XmlLangImpl(Locale.US); assertEquals("en-US", attr.getValue()); assertEquals(Locale.US, attr.getLocale()); try { attr = new XmlLangImpl(new Locale("abcd")); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { } }