@Test
public void testNonLineString() throws ParseException {

  String wkt = "POLYGON (( 0 0, 1 1, 2 2, 0 0))";
  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, is(geometry));
}