@Test
    void verifyCookieValue() {
        assertTrue(sessionStore.get(webContext, "SessionAttribute1").isEmpty());
        assertTrue(sessionStore.getSessionId(webContext, true).isEmpty());
        assertThrows(InvalidCookieException.class, this::getDistributedSessionCookie);
        sessionStore.set(webContext, "SessionAttribute1", "AttributeValue1");
        val cookie = getDistributedSessionCookie();
        val sessionCookieValue = cookieGenerator.getCasCookieValueManager().obtainCookieValue(cookie.getValue(), request);
        assertNotNull(sessionCookieValue);
        val ticketId = TransientSessionTicketFactory.normalizeTicketId(sessionCookieValue);
        assertNotNull(ticketRegistry.getTicket(ticketId));
        assertFalse(sessionStore.get(webContext, "SessionAttribute1").isEmpty());
    }
This is {@link TicketRegistrySessionStoreTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-pac4j-api/src/test/java/org/apereo/cas/integration/pac4j/TicketRegistrySessionStoreTests.java