import org.junit.Test;
public class FreeGeoIpServiceTest {
@Test
public void testGeoLocation(){
String result = new FreeGeoIpService().getGeoLocation();
Assert.assertNotNull(result);
//could be an empty line if can't access geo location site
if (!result.isEmpty()){
Assert.assertFalse(result.contains(":"));
int index = result.indexOf(',');