@Test
public void testClipExtractSeparateBitsLowLine() throws Exception {

    SimpleFeatureCollection features = fsLines.getFeatures();
    ClipProcess cp = new ClipProcess();
    // clip with a rotated "C"
    SimpleFeatureCollection result = cp.execute(features, new WKTReader().read("POLYGON((1000 -10, 1000 10, 9000 10, 9000 -10, 8000 -10, 8000 5, 2000 5, 2000 -10, 1000 -10))"), true);
    assertEquals(1, result.size());
    SimpleFeatureIterator fi = result.features();
    // check the first polygon
    SimpleFeature f = fi.next();
    fi.close();
    MultiLineString ml = (MultiLineString) f.getDefaultGeometry();
    assertEquals(2, ml.getNumGeometries());
    LineString ls = (LineString) ml.getGeometryN(0);
    CoordinateSequence cs = ls.getCoordinateSequence();
    assertEquals(2, cs.size());
    assertOrdinates(1000, 0, 0.1, cs, 0);
    assertOrdinates(2000, 0, 0.2, cs, 1);
    ls = (LineString) ml.getGeometryN(1);
    cs = ls.getCoordinateSequence();
    assertEquals(2, cs.size());
    assertOrdinates(8000, 0, 0.8, cs, 0);
    assertOrdinates(9000, 0, 0.9, cs, 1);
}