assertEquals(Filter.INCLUDE, vl.getWriteFilter());
assertNull(vl.getReadAttributes());
assertNull(vl.getWriteAttributes());
// check layer in the sf workspace with a wfs request
Request request = new Request();
request.setService("WFS");
request.setRequest("GetFeature");
Dispatcher.REQUEST.set(request);
LayerInfo generic = getCatalog().getLayerByName(getLayerId(MockData.GENERICENTITY));
vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
assertEquals(Filter.EXCLUDE, vl.getReadFilter());
assertEquals(Filter.EXCLUDE, vl.getWriteFilter());
// now fake a getmap request (using a service and request with a different case than the
// geofenceService)
request = new Request();
request.setService("WmS");
request.setRequest("gETmAP");
Dispatcher.REQUEST.set(request);
vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
assertEquals(Filter.INCLUDE, vl.getReadFilter());
assertEquals(Filter.INCLUDE, vl.getWriteFilter());
}