@Test
public void testDoFilter_shouldDelegateToSecurityFilterChain() throws Exception {

    ServletRequest req = mock(ServletRequest.class);
    ServletResponse resp = mock(ServletResponse.class);
    FilterChain chain = mock(FilterChain.class);
    Filter filter = filterFactory.createFilter(mock(ConfigurableFilterConfig.class));
    
    filter.doFilter(req, resp, chain);
    
    verify(delegateFilter).doFilter(req, resp, chain);
}