request.setRequestURL("http:
    public void testNormalOperationWithDefaultFilterProcessesUrl()        throws Exception {        // Setup our HTTP request        MockHttpServletRequest request = new MockHttpServletRequest("");        request.setServletPath("/j_mock_post");        // Setup our filter configuration        MockFilterConfig config = new MockFilterConfig();        // Setup our expectation that the filter chain will not be invoked, as we redirect to defaultTargetUrl        MockFilterChain chain = new MockFilterChain(false);        MockHttpServletResponse response = new MockHttpServletResponse();        // Setup our test object, to grant access        MockAbstractProcessingFilter filter = new MockAbstractProcessingFilter(true);        filter.setFilterProcessesUrl("/j_mock_post");        filter.setDefaultTargetUrl("/logged_in.jsp");        filter.setAuthenticationFailureUrl("/failure.jsp");        filter.setAuthenticationManager(new MockAuthenticationManager(true));        filter.afterPropertiesSet();        // Test        executeFilterInContainerSimulator(config, filter, request, response,            chain);        assertEquals("/logged_in.jsp", response.getRedirect());        assertTrue(request.getSession().getAttribute(HttpSessionIntegrationFilter.ACEGI_SECURITY_AUTHENTICATION_KEY) != null);        assertEquals("test",            ((Authentication) request.getSession().getAttribute(HttpSessionIntegrationFilter.ACEGI_SECURITY_AUTHENTICATION_KEY)).getPrincipal()             .toString());    }