AffineTransform at = AffineTransform.getScaleInstance(0.5, 1);
MathTransform2D t = (MathTransform2D) ReferencingFactoryFinder.getMathTransformFactory(null)
.createAffineTransform(new GeneralMatrix(at));
coord = JTS.transform(coord, coord, t);
assertEquals(new Coordinate(5, 10), coord);
coord = JTS.transform(coord, coord, t.inverse());
assertEquals(new Coordinate(10, 10), coord);
CoordinateReferenceSystem crs = ReferencingFactoryFinder.getCRSFactory(null).createFromWKT(UTM_ZONE_10N);
t = (MathTransform2D) ReferencingFactoryFinder.getCoordinateOperationFactory(null).createOperation(
DefaultGeographicCRS.WGS84, crs).getMathTransform();