@Test
public void testGetLengthMeters() {

    LOG.info("testGetLengthMeters");
    final GeoPoint o = new GeoPoint(-0.5, 10.0); // Note that the values are chosen symmetrically around lat=0!
    final GeoPoint x1 = new GeoPoint(0.5, 10.0);
    final GeoPoint x2 = new GeoPoint(1.5, 10.0);
    final GeoPolyLine poly = new GeoPolyLine(Lists.asList(o, x1, new GeoPoint[]{x2}));
    final double len1 = Geo.METERS_PER_DEGREE_LAT * 2.0;
    final double len2 = poly.getLengthMeters();
    Assert.assertEquals(0, Double.compare(len1, len2));
}