@Test
    void verifyEduPersonTargetedIdViaInCommon() {
        val registeredService = SamlIdPTestUtils.getSamlRegisteredService();
        val filter = new InCommonRSAttributeReleasePolicy();
        filter.setOrder(1);
        val filter2 = new EduPersonTargetedIdAttributeReleasePolicy();
        filter2.setSalt("OqmG80fEKBQt");
        filter2.setOrder(0);
        val chain = new ChainingAttributeReleasePolicy();
        chain.addPolicies(filter);
        chain.addPolicies(filter2);
        chain.setMergingPolicy(PrincipalAttributesCoreProperties.MergingStrategyTypes.MULTIVALUED);
        registeredService.setAttributeReleasePolicy(chain);
        val releasePolicyContext = RegisteredServiceAttributeReleasePolicyContext.builder()
            .registeredService(registeredService)
            .applicationContext(applicationContext)
            .service(CoreAuthenticationTestUtils.getService("https://sp.testshib.org/shibboleth-sp"))
            .principal(CoreAuthenticationTestUtils.getPrincipal("casuser"))
            .build();
        val attributes = chain.getAttributes(releasePolicyContext);
        assertEquals(List.of("bhb1if0QzFdkKSS5xkcNCALXtGE="),
            attributes.get(EduPersonTargetedIdAttributeReleasePolicy.ATTRIBUTE_NAME_EDU_PERSON_TARGETED_ID));
    }
This is {@link EduPersonTargetedIdAttributeReleasePolicyTests}.

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