private Cookie getDistributedSessionCookie() {
        return Arrays.stream(response.getCookies())
            .filter(r -> r.getName().equals(cookieGenerator.getCookieName()))
            .findFirst()
            .orElseThrow(() -> new InvalidCookieException("Cookie not found"));
    }
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