@Test
    void verifyEduPersonTargetedIdDefinitions() {
        val registeredService = SamlIdPTestUtils.getSamlRegisteredService();
        val policy = new EduPersonTargetedIdAttributeReleasePolicy();
        policy.setSalt("OqmG80fEKBQt");
        policy.setUseUniformResourceName(true);

        val context = RegisteredServiceAttributeReleasePolicyContext.builder()
            .registeredService(registeredService)
            .applicationContext(applicationContext)
            .service(CoreAuthenticationTestUtils.getService("https://sp.testshib.org/shibboleth-sp"))
            .principal(CoreAuthenticationTestUtils.getPrincipal("casuser"))
            .build();
        var definitions = policy.determineRequestedAttributeDefinitions(context);
        assertTrue(definitions.contains(EduPersonTargetedIdAttributeReleasePolicy.ATTRIBUTE_URN_EDU_PERSON_TARGETED_ID));
        policy.setUseUniformResourceName(false);
        definitions = policy.determineRequestedAttributeDefinitions(context);
        assertTrue(definitions.contains(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