@Test
    void verifyOperation() throws Exception {
        assertNotNull(delegatedClientSaml2SessionManager.getName());
        val context = MockRequestContext.create(applicationContext);
        val webContext = new JEEContext(context.getHttpServletRequest(), context.getHttpServletResponse());

        val client = identityProviders.findClient("SAML2Client", webContext).orElseThrow();
        assertTrue(delegatedClientSaml2SessionManager.supports(client));
        
        val ticket = new TransientSessionTicketImpl(UUID.randomUUID().toString(),
            NeverExpiresExpirationPolicy.INSTANCE, RegisteredServiceTestUtils.getService(), Map.of());

        delegatedClientSaml2SessionManager.trackIdentifier(webContext, ticket, client);
        val clientIdentifier = delegatedClientSaml2SessionManager.retrieveIdentifier(webContext, client);
        assertEquals(ticket.getId(), clientIdentifier);
    }
This is {@link DelegatedClientSaml2SessionManagerTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-pac4j-saml/src/test/java/org/apereo/cas/web/saml2/DelegatedClientSaml2SessionManagerTests.java