@Test
public void testLatLonToMercs() {

    LOG.info("testLatLonToMercs");
    Assert.assertEquals(new MercatorPoint(0.5, 0.5), MercatorPoint.latLonToMercs(new GeoPoint(0.0, 0.0)));
    MercatorPoint expected = MercatorPoint.latLonToMercs(new GeoPoint(90.0, -180.0));
    Assert.assertTrue(expected.toString(), MathUtils.isBetween(expected.getMercX(), 0.0, 0.0));
    Assert.assertTrue(expected.toString(), MathUtils.isBetween(expected.getMercY(), 0.0, 0.01));
    expected = MercatorPoint.latLonToMercs(new GeoPoint(-90.0, Geo.LON180));
    Assert.assertTrue(expected.toString(), MathUtils.isBetween(expected.getMercX(), 1.0, 1.0));
    Assert.assertTrue(expected.toString(), MathUtils.isBetween(expected.getMercY(), 0.99, 1.0));
}