@Test
public void testSplitPolygon() throws Exception {

    Geometry poly = wktRdr.read("POLYGON ((100 100, 200 200, 200 100, 100 100))");
    LineString line = (LineString) wktRdr.read("LINESTRING (150 200, 150 50)");
    Geometry output = GeometryFunctions.splitPolygon(poly, line);
    Geometry expectedOutput = wktRdr.read("GEOMETRYCOLLECTION (POLYGON ((150 100, 100 100, 150 150, 150 100)), POLYGON ((150 150, 200 200, 200 100, 150 100, 150 150)))");
    assertTrue(output.norm().equalsExact(expectedOutput.norm()));
}