@Test
public void testCheckPolygon() throws FactoryException {

    WKTReader reader = new WKTReader();
    try {
        Polygon geometry = (Polygon) reader.read("POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))");
        String srsURI = "http://www.opengis.net/def/crs/EPSG/0/4326";
        Geometry expResult = reader.read("POLYGON ((10 30, 40 40, 40 20, 20 10, 10 30))");
        Geometry result = GeometryReverse.check(geometry, srsURI);
        //
        //
        assertEquals(expResult, result);
    } catch (ParseException ex) {
        System.err.println("ParseException: " + ex.getMessage());
    }
}