@Test
public void testAsLines() {

    LOG.info("testAsLines");
    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 List<GeoLine> lines = poly.asLines();
    Assert.assertEquals(2, lines.size());
    Assert.assertEquals(lines.get(0), new GeoLine(o, x1));
    Assert.assertEquals(lines.get(1), new GeoLine(x1, x2));
}