IpUtils { public static String getCountry(String ip) { return get(ip, IpKey.COUNTRY); } private  IpUtils(); @SuppressWarnings("unchecked") static Map<String, String> getAllInfo(String ip); static String getCountry(String ip); static String getArea(String ip); static String getRegion(String ip); static String getCity(String ip); static String getIsp(String ip); static String getCounty(String ip); static String get(String ip, IpKey key); static String getInetIp(); static List<String> getInetIps();  }
@Test public void testGetCountry(){ Assert.assertNotNull(IpUtils.getCountry("180.97.33.107")); }