interceptor.setApplicationContext(MockApplicationContext.getContext());
    public void testSuccessfulInvocation() throws Throwable {        // Setup the FilterSecurityInterceptor        FilterSecurityInterceptor interceptor = new FilterSecurityInterceptor();        interceptor.setAccessDecisionManager(new MockAccessDecisionManager());        interceptor.setAuthenticationManager(new MockAuthenticationManager());        interceptor.setRunAsManager(new MockRunAsManager());        // Setup a mock config attribute definition        ConfigAttributeDefinition def = new ConfigAttributeDefinition();        def.addConfigAttribute(new SecurityConfig("MOCK_OK"));        MockFilterInvocationDefinitionMap mockSource = new MockFilterInvocationDefinitionMap("/secure/page.html",                def);        interceptor.setObjectDefinitionSource(mockSource);        // Setup our expectation that the filter chain will be invoked, as access is granted        MockFilterChain chain = new MockFilterChain(true);        // Setup our HTTP request and response        MockHttpServletResponse response = new MockHttpServletResponse();        MockHttpServletRequest request = new MockHttpServletRequest(null,                new MockHttpSession());        request.setServletPath("/secure/page.html");        // Setup a Context        SecureContext context = new SecureContextImpl();        UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken("Test",                "Password",                new GrantedAuthority[] {new GrantedAuthorityImpl("MOCK_OK")});        context.setAuthentication(token);        ContextHolder.setContext(context);        // Create and test our secure object        FilterInvocation fi = new FilterInvocation(request, response, chain);        interceptor.invoke(fi);        // Destroy the Context        ContextHolder.setContext(null);    }