public void testStartupCheckForAuthenticationManager() {
public void testStartupCheckForAuthenticationManager() throws Exception {
    public void testStartupCheckForAuthenticationManager() {        MethodSecurityInterceptor si = new MethodSecurityInterceptor();        si.setAccessDecisionManager(new MockAccessDecisionManager());        si.setRunAsManager(new MockRunAsManager());        si.setObjectDefinitionSource(new MockMethodDefinitionSource(false, true));        try {            si.afterPropertiesSet();            fail("Should have thrown IllegalArgumentException");        } catch (IllegalArgumentException expected) {            assertEquals("An AuthenticationManager is required",                expected.getMessage());        }    }