@Test
    void verifyCasStoreOperation() throws Throwable {
        val localeResolver = new SessionLocaleResolver();
        requestContext.setRequestAttribute(DispatcherServlet.LOCALE_RESOLVER_ATTRIBUTE, localeResolver);
        val config = new CasConfiguration();
        config.setLoginUrl("https://example.org/login");
        val client = new CasClient();
        client.setConfiguration(config);
        requestContext.setParameter("locale", "de");
        val ticket = delegatedClientAuthenticationWebflowManager.store(requestContext, context, client);
        assertNotNull(ticketRegistry.getTicket(ticket.getId()));
        val service = delegatedClientAuthenticationWebflowManager.retrieve(requestContext, context, client);
        assertNotNull(service);
        assertNull(ticketRegistry.getTicket(ticket.getId()));
        assertEquals(Locale.GERMAN, localeResolver.resolveLocale(requestContext.getHttpServletRequest()));
    }
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