@Test
public void testAboveCount() throws ParseException {

  String wkt = generate(1001);
  Geometry geometry = new WKTReader().read(wkt);
  LinestringGeometrySubsampler linestringGeometrySubsampler = new LinestringGeometrySubsampler();
  GeometryOperator.Context context = new GeometryOperator.Context();
  context.setSubsampleCount(1000);
  Geometry actual = linestringGeometrySubsampler.apply(geometry, context);
  assertThat(actual.getCoordinates().length, is(1000));
}