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