StyleBuilder sb = new StyleBuilder();
Symbolizer ps = sb.createPointSymbolizer();
Style style = sb.createStyle(ps);
// build a filter for the layer own definition query
FeatureLayer layer = new FeatureLayer(pointFS, style);
Polygon polygon = JTS.toGeometry((Envelope) envUTM31N);
polygon.setUserData(utm31n);
layer.setQuery(new DefaultQuery(null, ff.intersects(ff.property("geom"), ff.literal(polygon))));
content.addLayer(layer);
RendererBaseTest.showRender("Reprojected polygon as a definition query", renderer, TIME, bounds);
assertEquals(1, renderedIds.size());