@Test(expected = IllegalStateException.class)
public void testNullSubsampleCount() throws ParseException {

  String wkt = generate(1001);
  Geometry geometry = new WKTReader().read(wkt);
  LinestringGeometrySubsampler linestringGeometrySubsampler = new LinestringGeometrySubsampler();
  GeometryOperator.Context context = new GeometryOperator.Context();
  context.setSubsampleCount(null);
  linestringGeometrySubsampler.apply(geometry, context);
}