public void testSegmentInThreeFeature() throws Exception {
SimpleFeatureSource source = featureSource.getFeatureSource("lrssimple");
LRSSegmentProcess process = new LRSSegmentProcess();
SimpleFeatureCollection origional = source.getFeatures();
FeatureCollection result = process.execute(origional, "from_lrs", "to_lrs", 0.5, 5.5);
Assert.assertEquals(1, result.size());
Feature feature = result.features().next();
MultiLineString segment = (MultiLineString) feature.getDefaultGeometryProperty().getValue();
Assert.assertEquals(4, segment.getNumPoints());
Assert.assertEquals(0.5, segment.getCoordinates()[0].x, 0.0);