@Test
public void testDistanceSameSRSDifferentUnit() throws Exception {

    Geometry targetGeo = GEOMETRY_FACTORY.createPoint(new Coordinate(385458, 156785)); //LatLon - 51.31, -2.21
    String targetSRSURI = SRS_URI.OSGB36_CRS;
    GeometryWrapper targetGeometry = new GeometryWrapper(targetGeo, targetSRSURI, WKTDatatype.URI, DimensionInfo.XY_POINT);
    Geometry instanceGeo = GEOMETRY_FACTORY.createPoint(new Coordinate(487920, 157518)); //LatLon: 51.31, -0.74
    String instanceSRSURI = SRS_URI.OSGB36_CRS;
    GeometryWrapper instance = new GeometryWrapper(instanceGeo, instanceSRSURI, WKTDatatype.URI, DimensionInfo.XY_POINT);
    //SRS is in metres.
    String distanceUnitsURL = Unit_URI.RADIAN_URL;
    double expResult = 0.025656; //Degree: 1.47
    double result = instance.distanceEuclidean(targetGeometry, distanceUnitsURL);
    assertEquals(expResult, result, 0.001);
}