@Test
public void testApplyToLineString() throws ParseException {

  String lineStringWkt = "LINESTRING ( 0 0, 0.01 0.01, 0.05 0.05 )";
  String expectedLineStringWkt = "LINESTRING ( 0 0, 0.05 0.05 )";
  GeometryOperator.Context context = new GeometryOperator.Context();
  context.setDistanceTolerance(0.01);
  assertThat(
      simplifyGeometryFunction.apply(wktReader.read(lineStringWkt), context).norm(),
      is(wktReader.read(expectedLineStringWkt).norm()));
}