si.setAfterInvocationManager(new MockAfterInvocationManager());
    public void testRejectsRunAsManagersThatDoNotSupportMethodInvocation() {        MethodSecurityInterceptor si = new MethodSecurityInterceptor();        si.setAccessDecisionManager(new MockAccessDecisionManager());        si.setAuthenticationManager(new MockAuthenticationManager());        si.setObjectDefinitionSource(new MockMethodDefinitionSource(false, true));        si.setRunAsManager(new MockRunAsManagerWhichOnlySupportsStrings());        try {            si.afterPropertiesSet();            fail("Should have thrown IllegalArgumentException");        } catch (IllegalArgumentException expected) {            assertEquals("RunAsManager does not support secure object class: interface org.aopalliance.intercept.MethodInvocation",                expected.getMessage());        }    }