public void testRejectsAccessDecisionManagersThatDoNotSupportMethodInvocation() {
public void testRejectsAccessDecisionManagersThatDoNotSupportMethodInvocation() throws Exception {
    public void testRejectsAccessDecisionManagersThatDoNotSupportMethodInvocation() {        MethodSecurityInterceptor si = new MethodSecurityInterceptor();        si.setAccessDecisionManager(new MockAccessDecisionManagerWhichOnlySupportsStrings());        si.setAuthenticationManager(new MockAuthenticationManager());        si.setObjectDefinitionSource(new MockMethodDefinitionSource(false, true));        si.setRunAsManager(new MockRunAsManager());        try {            si.afterPropertiesSet();            fail("Should have thrown IllegalArgumentException");        } catch (IllegalArgumentException expected) {            assertEquals("AccessDecisionManager does not support secure object class: interface org.aopalliance.intercept.MethodInvocation",                expected.getMessage());        }    }