public void testNames() throws IOException, GeoIp2Exception {
WebServiceClient client = new WebServiceClient.Builder(42,
"abcdef123456").testTransport(this.transport)
.locales(Arrays.asList("zh-CN", "ru")).build();
CityResponse city = client.city(InetAddress.getByName("1.1.1.2"));
assertEquals("country.getContinent().getName() does not return 北美洲",
"北美洲", city.getContinent().getName());
assertEquals("country.getCountry().getName() does not return 美国", "美国",
city.getCountry().getName());
assertEquals("toString() returns getName()", city.getCountry()
.getName(), city.getCountry().getName());
}