request.setServletPath("/nomatch");
assertEquals(null, filterChainProxy.getFilters(request));
}
public void urlStrippingPropertyIsRespected() throws Exception {
FilterChainProxy filterChainProxy = (FilterChainProxy) applicationContext.getBean(
"newFilterChainProxyNoDefaultPath", FilterChainProxy.class);
String url = "/blah.bar";
MockHttpServletRequest request = new MockHttpServletRequest();
request.setServletPath(url);
request.setQueryString("x=something");
assertNotNull(filterChainProxy.getFilters(request));
assertEquals(2, filterChainProxy.getFilters(request).size());
}