@Test
    void verifyOperation() throws Throwable{
        val context = MockRequestContext.create(applicationContext);
        context.setRemoteAddr("185.86.151.11").setLocalAddr("185.86.151.11").setClientInfo();
        
        assertNotNull(groovyAuthenticationHandlerResolver);
        assertNotNull(globalPrincipalAttributeRepository);
        assertNotNull(authenticationManager);
        assertNotNull(groovyAuthenticationProcessorExecutionPlanConfigurer);
        
        val attributes = authenticationAttributeReleasePolicy.getAuthenticationAttributesForRelease(
            CoreAuthenticationTestUtils.getAuthentication(), mock(Assertion.class),
            Map.of(), CoreAuthenticationTestUtils.getRegisteredService());
        assertTrue(attributes.isEmpty());

        assertThrows(AuthenticationException.class, () -> authenticationManager.authenticate(CoreAuthenticationTestUtils.getAuthenticationTransactionFactory()
            .newTransaction(CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword())));
    }
This is {@link AuthenticationAttributeReleasePolicyTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-person-directory/src/test/java/org/apereo/cas/AuthenticationAttributeReleasePolicyTests.java