@Test(expected = IllegalStateException.class)
public void testDoFilterWithoutSettedDelegatee_shouldThrowException() throws Exception {

    ServletRequest req = mock(ServletRequest.class);
    ServletResponse resp = mock(ServletResponse.class);
    FilterChain chain = mock(FilterChain.class);
    DelegatingSecurityFilter filter = new DelegatingSecurityFilter();
    
    filter.doFilter(req, resp, chain);
}