@Test
public void testGetEasting() {

    LOG.info("testGetEasting");
    final GeoPoint x1 = new GeoPoint(0.0, -170.0);
    final GeoPoint x2 = new GeoPoint(1.0, -20.0);
    final GeoPoint o = new GeoPoint(2.0, 0.0);
    final GeoPoint x3 = new GeoPoint(3.0, 20.0);
    final GeoPoint x4 = new GeoPoint(4.0, 170.0);
    Assert.assertTrue(MathUtils.isAlmostEqual(150.0, new GeoLine(x1, x2).getEasting()));
    Assert.assertTrue(MathUtils.isAlmostEqual(360.0 - 150.0, new GeoLine(x2, x1).getEasting()));
    Assert.assertTrue(MathUtils.isAlmostEqual(170.0, new GeoLine(x1, o).getEasting()));
    Assert.assertTrue(MathUtils.isAlmostEqual(360.0 - 170.0, new GeoLine(o, x1).getEasting()));
    Assert.assertTrue(MathUtils.isAlmostEqual(190.0, new GeoLine(x1, x3).getEasting()));
    Assert.assertTrue(MathUtils.isAlmostEqual(360.0 - 190.0, new GeoLine(x3, x1).getEasting()));
    Assert.assertTrue(MathUtils.isAlmostEqual(340.0, new GeoLine(x1, x4).getEasting()));
    Assert.assertTrue(MathUtils.isAlmostEqual(360.0 - 340.0, new GeoLine(x4, x1).getEasting()));
}