@Test
public void testGetBoundsIntersectsFiltered() throws Exception {
GeometryFactory factory = new GeometryFactory();
LineString equator = factory.createLineString(new Coordinate[] { new Coordinate(0, 0),
new Coordinate(-180, 180) });
Filter filter = filterService.createIntersectsFilter(equator,beanLayer.getLayerInfo().getFeatureInfo().getGeometryType().getName());
Envelope bounds = layerService.getBounds(LAYER_ID,
geoService.getCrs2(beanLayer.getLayerInfo().getCrs()), filter);
Assert.assertEquals(0, bounds.getMinX(), ALLOWANCE);
Assert.assertEquals(0, bounds.getMinY(), ALLOWANCE);
Assert.assertEquals(1, bounds.getMaxX(), ALLOWANCE);