### Question:
LocaleResolver { static Locale resolveLocale(String unparsed) throws IllegalArgumentException { Locale locale = forLanguageTag(unparsed); if ( "".equals(locale.getLanguage()) ) { throw new IllegalArgumentException(unparsed); } return replaceByRootLocaleIfLanguageIsEnglish(locale); } private  LocaleResolver();   }### Answer:
@Test public void wfly3723() { assertEquals("",french, LocaleResolver.resolveLocale(french.toLanguageTag())); assertEquals("",german, LocaleResolver.resolveLocale(german.toLanguageTag())); assertEquals("",Locale.ROOT, LocaleResolver.resolveLocale(english.toLanguageTag())); }