SimpleFeatureCollection origional = source.getFeatures();
FeatureCollection result = process.execute(origional, "from_lrs", "to_lrs", 0.5, 1.5);
Assert.assertEquals(1, result.size());
Feature feature = result.features().next();
MultiLineString segment = (MultiLineString) feature.getDefaultGeometryProperty().getValue();
Assert.assertEquals(2, segment.getNumPoints());
Assert.assertEquals(0.5, segment.getCoordinates()[0].x, 0.0);
Assert.assertEquals(0.0, segment.getCoordinates()[0].y, 0.0);
Assert.assertEquals(1.5, segment.getCoordinates()[1].x, 0.0);
Assert.assertEquals(0.0, segment.getCoordinates()[1].y, 0.0);
}