LocationUtils { @Deprecated static public String getContinentName(String continentCode) { return getContinentName(continentCode, 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 testGetContinentNameString() { assertEquals("North America", LocationUtils.getContinentName("NA")); assertEquals(UNKNOWN_CONTINENT, LocationUtils.getContinentName(null)); assertEquals(UNKNOWN_CONTINENT, LocationUtils.getContinentName("XXXX")); }
@Test public void testGetContinentNameStringLocale() { assertEquals("North America", LocationUtils.getContinentName( "NA", Locale.ENGLISH)); }