@Test
    void verifySAML1Type() {
        val handler = new CustomNamespaceWSFederationClaimsClaimsHandler("CAS", "https://apereo.org/cas",
            List.of("https://apereo.org/cas/givenName", "https://apereo.org/cas/email"));

        val claims = new ClaimCollection();
        val claim = new Claim();
        claim.setClaimType("https://apereo.org/cas/givenName");
        claims.add(claim);

        val parameters = new ClaimsParameters();
        val requirements = new TokenRequirements();
        requirements.setTokenType(WSFederationConstants.WSS_SAML1_TOKEN_TYPE);
        parameters.setTokenRequirements(requirements);
        parameters.setRealm("CAS");
        parameters.setPrincipal(mock(Principal.class));
        val values = handler.retrieveClaimValues(claims, parameters);
        assertFalse(values.isEmpty());
        val processed = values.getFirst();
        assertEquals("https://apereo.org/cas/givenName", processed.getClaimType());
        assertEquals(handler.getIssuer(), processed.getIssuer());
    }
This is {@link CustomNamespaceWSFederationClaimsClaimsHandlerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-ws-sts-api/src/test/java/org/apereo/cas/support/claims/CustomNamespaceWSFederationClaimsClaimsHandlerTests.java