public void testStartupCheckForRunAsManager() {
public void testStartupCheckForRunAsManager() throws Exception {
    public void testStartupCheckForRunAsManager() {        MethodSecurityInterceptor si = new MethodSecurityInterceptor();        si.setAccessDecisionManager(new MockAccessDecisionManager());        si.setAuthenticationManager(new MockAuthenticationManager());        si.setRunAsManager(null); // Overriding the default        si.setObjectDefinitionSource(new MockMethodDefinitionSource(false, true));        try {            si.afterPropertiesSet();            fail("Should have thrown IllegalArgumentException");        } catch (IllegalArgumentException expected) {            assertEquals("A RunAsManager is required", expected.getMessage());        }    }