LocationUtils { @Deprecated static public String getCountryName(String countryCode) { return getCountryName(countryCode, Locale.getDefault()); }  static String getContinentCode(String countryCode); @Deprecated static String getContinentName(String continentCode); static String getContinentName(String continentCode, Locale locale); @Deprecated static String getCountryName(String countryCode); static String getCountryName(String countryCode, Locale locale);  }
@Test public void testGetCountryNameString() { assertEquals(Locale.US.getDisplayCountry(), LocationUtils.getCountryName( "US")); assertEquals(UNKNOWN_COUNTRY, LocationUtils.getCountryName(null)); assertEquals("XX", LocationUtils.getCountryName("XX")); }
@Test public void testGetCountryNameStringLocale() { assertEquals("United States", LocationUtils.getCountryName( "US", Locale.ENGLISH)); }