@Test
public void testOrthodromicDistance() throws FactoryException {

    MapProjection mt = createGoogleMercator();
    
    // Test some large distances
sertEquals(111319.49079,
mt.orthodromicDistance(new Point2D.Double(0.0, 0.0),
new Point2D.Double(0.0, 1.0)), 0.001);
sertEquals(111319.49079,
mt.orthodromicDistance(new Point2D.Double(0.0, 0.0),
new Point2D.Double(1.0, 0.0)), 0.001);
sertEquals(111319.49079,
mt.orthodromicDistance(new Point2D.Double(0.0, 89.0),
new Point2D.Double(0.0, 90.0)), 0.001);
sertEquals(1942.76834,
mt.orthodromicDistance(new Point2D.Double(0.0, 89.0),
new Point2D.Double(1.0, 89.0)), 0.001);
sertEquals(10018754.17139,
mt.orthodromicDistance(new Point2D.Double(0.0, 0.0),
new Point2D.Double(0.0, 90.0)), 0.001);
	// Test some small distances.
	Point2D src = new Point2D.Double(48.38824840214492, -14.967538330290973);
	assertEquals(0.0, mt.orthodromicDistance(src, src), 0.000000001);
	Point2D target = new Point2D.Double(src.getX(), src.getY()+0.0000001);
	assertEquals(0.011131948840096939, mt.orthodromicDistance(src, target), 1E-12);
	
	Point2D target2 = new Point2D.Double(src.getX(), src.getY()+0.000000000001);
	assertEquals(1.1117412E-7, mt.orthodromicDistance(src, target2), 1E-12);
}