@Test
    void verifySamlStoreOperation() throws Throwable {
        val config = new SAML2Configuration();
        val client = new SAML2Client(config);
        val ticket = delegatedClientAuthenticationWebflowManager.store(requestContext, context, client);
        assertNotNull(ticketRegistry.getTicket(ticket.getId()));
        assertEquals(ticket.getId(), delegatedClientDistributedSessionStore.get(context, SAML2StateGenerator.SAML_RELAY_STATE_ATTRIBUTE).get());
        requestContext.setParameter("RelayState", ticket.getId());
        val service = delegatedClientAuthenticationWebflowManager.retrieve(requestContext, context, client);
        assertNotNull(service);
        assertNull(ticketRegistry.getTicket(ticket.getId()));
    }
This is {@link DefaultDelegatedClientAuthenticationWebflowManagerTests}.

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