@Test
public void testEmptyLines() throws Exception {

    SimpleFeatureCollection features = fsLines.getFeatures();
    ClipProcess cp = new ClipProcess();
    // to reproduce the issue we need a non rectangular clip polygon,
    // whose bbox will intersect the bbox of the geometry, but whose intersection is actually
    // emtpy
    SimpleFeatureCollection result = cp.execute(features,
            new WKTReader().read("POLYGON((-8 -7, -8 3, 2 3, -8 -7))"), true);
    assertEquals(0, result.size());
    SimpleFeatureIterator fi = result.features();
    assertFalse(fi.hasNext());
    fi.close();
}