@Test
public void testSplitLineString() throws Exception {

    LineString line = (LineString) wKTReader.read("LINESTRING(0 8, 1 8 , 3 8,  8  8, 10 8, 20 8, 25 8, 30 8, 50 8, 100 8)");
    Point point = (Point) wKTReader.read("POINT(1.5 4 )");
    LineString[] results = GeometryEdit.splitLineStringWithPoint(line, point, 4);
    assertEquals(results[0], wKTReader.read("LINESTRING(0 8, 1 8 , 1.5 8)"));
    assertEquals(results[1], wKTReader.read("LINESTRING(1.5 8 , 3 8,  8  8, 10 8, 20 8, 25 8, 30 8, 50 8, 100 8)"));
}