@Test
public void whenPolygonInteriorRingFullyContainsTileExtentThenFeatureIsIgnored() {

    GeometryFactory gf = new GeometryFactory();
    Coordinate[] ca = new Coordinate[5];
    ca[0] = new Coordinate(-50, -50);
    ca[1] = new Coordinate(150, -50);
    ca[2] = new Coordinate(150, 150);
    ca[3] = new Coordinate(-50, 150);
    ca[4] = new Coordinate(-50, -50);
    LinearRing exterior = gf.createLinearRing(ca);
    ca[0] = new Coordinate(-10, -10);
    ca[1] = new Coordinate(-10, 110);
    ca[2] = new Coordinate(110, 110);
    ca[3] = new Coordinate(110, -10);
    ca[4] = new Coordinate(-10, -10);
    LinearRing interior = gf.createLinearRing(ca);
    Polygon p = gf.createPolygon(exterior, new LinearRing[] { interior });
    double[] bbox = { 0, 0, 100, 100 };
    SimpleFeatureTypeBuilder tBuilder = new SimpleFeatureTypeBuilder();
    tBuilder.setName("test");
    tBuilder.add("geom", Polygon.class);
    SimpleFeatureType featureType = tBuilder.buildFeatureType();
    SimpleFeatureBuilder fBuilder = new SimpleFeatureBuilder(featureType);
    fBuilder.set("geom", p);
    SimpleFeature f = fBuilder.buildFeature(null);
    DefaultFeatureCollection fc = new DefaultFeatureCollection("test");
    fc.add(f);
    List<Geometry> geom = SimpleFeaturesMVTEncoder.asMVTGeoms(fc, bbox, 4096, 256);
    assertEquals(0, geom.size());
}