@Test
public void testTranslate() {

    LOG.info("testTranslate");
    final GeoPoint x1 = new GeoPoint(0.0, 179.0);
    final GeoPoint x2 = new GeoPoint(0.0, -179.0);
    final GeoPoint x3 = new GeoPoint(0.0, 0.0);
    final List<GeoPoint> p1 = Lists.asList(x1, new GeoPoint[]{x2, x3});
    final GeoPolyLine poly = new GeoPolyLine(p1);
    final GeoPolyLine poly1 = poly.translate(new GeoVector(2.0, 1.0));
    final GeoPolyLine poly2 = poly.translate(new GeoVector(-2.0, -1.0));
    Assert.assertEquals(new GeoPoint(2.0, -180.0), poly1.get(0));
    Assert.assertEquals(new GeoPoint(2.0, -178.0), poly1.get(1));
    Assert.assertEquals(new GeoPoint(2.0, 1.0), poly1.get(2));
    Assert.assertEquals(new GeoPoint(-2.0, 178.0), poly2.get(0));
    Assert.assertEquals(new GeoPoint(-2.0, -180.0), poly2.get(1));
    Assert.assertEquals(new GeoPoint(-2.0, -1.0), poly2.get(2));
}