@Test
    void verifyMatch() throws Throwable {
        val filter = new PseudonymousAccessAttributeReleasePolicy();
        val registeredService = SamlIdPTestUtils.getSamlRegisteredService();
        registeredService.setAttributeReleasePolicy(filter);
        val context = RegisteredServiceAttributeReleasePolicyContext.builder()
            .registeredService(registeredService)
            .service(CoreAuthenticationTestUtils.getService())
            .applicationContext(applicationContext)
            .principal(CoreAuthenticationTestUtils.getPrincipal("casuser",
                CollectionUtils.wrap("schacHomeOrganization", "apereo",
                    "eduPersonScopedAffiliation", "cas@apereo.org",
                    "eduPersonAssurance", "gold")))
            .build();
        val attributes = filter.getAttributes(context);
        assertEquals(3, attributes.size());
        assertTrue(attributes.containsKey("schacHomeOrganization"));
        assertTrue(attributes.containsKey("eduPersonScopedAffiliation"));
        assertTrue(attributes.containsKey("eduPersonAssurance"));
    }
This is {@link PseudonymousAccessAttributeReleasePolicyTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/services/PseudonymousAccessAttributeReleasePolicyTests.java