@Test
public void testLatencies() {

    // Expected latencies are taken from
    //
    // http://ipnetwork.bgtmo.ip.att.net/pws/global_network_avgs.html
    //
    double delta = 25;
    // In the same region
    assertEquals(68.08, service.latency(LA_IP, NEW_YORK_IP), delta);
    assertEquals(34.79, service.latency(ORLEANDO_IP, NEW_YORK_IP), delta);
    assertEquals(30.39, service.latency(MADRID_IP, LONDON_IP), delta);
    assertEquals(117.13, service.latency(HONG_KONG_IP, SYDNEY_IP), delta);
    assertEquals(77.28, service.latency(SINGAPORE_IP, TOKYO_IP), delta);
    // // Across regions
    assertEquals(75.07, service.latency(LONDON_IP, NEW_YORK_IP), delta);
    assertEquals(110.28, service.latency(RIO_DE_JANEIRO_IP, NEW_YORK_IP), delta);
    assertEquals(97.33, service.latency(TOKYO_IP, SAN_FRANCISCO_IP), delta);
    //
    // For some reason the data about transpacific latencies in PingER and
    // the above URL disagree! That's why the following tests fail.
    //
    // assertEquals(242.88, service.latency(TOKYO_IP, LONDON_IP), delta);
    // assertEquals(242.88, service.latency(LA_IP, SINGAPORE_IP), delta);
}