CountryUtil { public static List<Country> getCountriesByName() { return byName; } private  CountryUtil(); static Country lookupByIso2(String iso2); static ArrayList<Country> parse(InputStream is); static List<Country> getCountriesByName();  }
@Test public void countryByName() throws Exception { List<Country> countries = CountryUtil.getCountriesByName(); Assert.assertEquals(countries.get(0), new Country("AF", "", "")); Assert.assertEquals(countries.get(1), new Country("AL", "", "")); Assert.assertEquals(countries.get(2), new Country("DZ", "", "")); Assert.assertEquals(countries.get(3), new Country("AS", "", "")); Assert.assertEquals(countries.get(4), new Country("AD", "", "")); Country c0 = countries.get(4); Assert.assertEquals("Andorra", c0.getName()); Assert.assertEquals("Andorra, Principality of", c0.getLongName()); }