@Test
public void testClipEnvelopeReprojection() throws Exception {

    SimpleFeatureCollection features = fsPolylines.getFeatures();
    RectangularClipProcess cp = new RectangularClipProcess();
    SimpleFeatureCollection result = cp.execute(features, new ReferencedEnvelope(0.0, 3339584.7, 0, 3503549.8, CRS.decode("EPSG:3857")), false);
    assertEquals(4, result.size());
}