public void testValidationFailsIfInvalidAttributePresented() {
public void testValidationFailsIfInvalidAttributePresented() throws Exception {
    public void testValidationFailsIfInvalidAttributePresented() {        MethodSecurityInterceptor si = new MethodSecurityInterceptor();        si.setAccessDecisionManager(new MockAccessDecisionManager());        si.setAuthenticationManager(new MockAuthenticationManager());        si.setRunAsManager(new RunAsManagerImpl());        assertTrue(si.isValidateConfigAttributes()); // check default        si.setObjectDefinitionSource(new MockMethodDefinitionSource(true, true));        try {            si.afterPropertiesSet();            fail("Should have thrown IllegalArgumentException");        } catch (IllegalArgumentException expected) {            assertEquals("Unsupported configuration attributes: [ANOTHER_INVALID, INVALID_ATTRIBUTE]",                expected.getMessage());        }    }