@Test
public void testDistanceDifferentSRSDifferentUnit() throws Exception {

    Geometry targetGeo = GEOMETRY_FACTORY.createPoint(new Coordinate(0.0, 1.0));
    String targetSRSURI = SRS_URI.WGS84_CRS;
    GeometryWrapper targetGeometry = new GeometryWrapper(targetGeo, targetSRSURI, WKTDatatype.URI, DimensionInfo.XY_POINT);
    Geometry instanceGeo = GEOMETRY_FACTORY.createPoint(new Coordinate(2.0, 0.0));
    String instanceSRSURI = SRS_URI.DEFAULT_WKT_CRS84;
    GeometryWrapper instance = new GeometryWrapper(instanceGeo, instanceSRSURI, WKTDatatype.URI, DimensionInfo.XY_POINT);
    //SRS is in degrees.
    String distanceUnitsURL = Unit_URI.METRE_URL;
    double expResult = 111320; //1.0 degree of longigtude at the equator is approx 111.32km.
    double result = instance.distanceEuclidean(targetGeometry, distanceUnitsURL);
    assertEquals(expResult, result, 1);
}