@Test
public void testMoveGeometry() throws Exception {

    Geometry geom = (Polygon) wKTReader.read("POLYGON (( 0 0 ,10 0, 10 10, 0 10, 0 0 ))");
    Point point = (Point) wKTReader.read("POINT (20 10)");
    //Test move a polygon
    Geometry result = GeometryEdit.moveGeometry(geom, new Coordinate(0, 0), point.getCoordinate());
    assertTrue(result.getCoordinates()[0].equals2D(point.getCoordinate()));
}