Filter resultFilter;
// BBOX
resultFilter = CompilerUtil.parseFilter(language,"BBOX(ATTR1, 10.0,20.0,30.0,40.0)");
Assert.assertTrue("BBox was expected", resultFilter instanceof BBOX);
BBOX bboxFilter = (BBOX) resultFilter;
Assert.assertEquals(bboxFilter.getMinX(), 10.0, 0.1);
Assert.assertEquals(bboxFilter.getMinY(), 20.0, 0.1);
Assert.assertEquals(bboxFilter.getMaxX(), 30.0, 0.1);
Assert.assertEquals(bboxFilter.getMaxY(), 40.0, 0.1);
Assert.assertEquals(null, bboxFilter.getSRS());
// BBOX using EPSG
resultFilter = CompilerUtil.parseFilter(language,"BBOX(ATTR1, 10.0,20.0,30.0,40.0, 'EPSG:4326')");
Assert.assertTrue("BBox was expected", resultFilter instanceof BBOX);
bboxFilter = (BBOX) resultFilter;
Assert.assertEquals("EPSG:4326", bboxFilter.getSRS());
}