SourceLanguageImpl extends XliffAttributeImpl implements
		SourceLanguage { public Locale getLocale() { return language.getLocale(); } SourceLanguageImpl(String sourceLanguage);  SourceLanguageImpl(Locale sourceLanguage); Locale getLocale();  }
@Test public void testSourceLanguageImplLocale() { SourceLanguageImpl attr = new SourceLanguageImpl(Locale.US); assertEquals("en-US", attr.getValue()); assertEquals(Locale.US, attr.getLocale()); try { attr = new SourceLanguageImpl(new Locale("abcd")); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { } }