@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        context.setRemoteAddr("185.86.151.11");
        context.setLocalAddr("185.88.151.11");
        context.withUserAgent();
        context.setClientInfo();

        context.setParameter(CasProtocolConstants.PARAMETER_METHOD, "POST");
        context.setRequestAttribute("locale", "en");
        context.setRequestAttribute("theme", "custom");

        val config = wsFederationConfigurations.toList().getFirst();
        val wctx = config.getId();
        val original = RegisteredServiceTestUtils.getService();
        wsFederationCookieManager.store(context.getHttpServletRequest(), context.getHttpServletResponse(), wctx, original, config);

        context.setParameter(WsFederationCookieManager.WCTX, wctx);
        context.setRequestCookiesFromResponse();
        val service = wsFederationCookieManager.retrieve(context);
        assertNotNull(service);
        assertEquals(original.getId(), service.getId());
    }
This is {@link WsFederationCookieManagerTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-wsfederation/src/test/java/org/apereo/cas/support/wsfederation/web/WsFederationCookieManagerTests.java