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

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

        val ticket = new MockTicketGrantingTicket("casuser");
        getTicketRegistry().addTicket(ticket);

        val cookie = getTicketGrantingTicketCookieGenerator()
            .addCookie(context.getHttpServletRequest(), context.getHttpServletResponse(), ticket.getId());
        context.setHttpRequestCookies(cookie);
        
        val result = action.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
        assertNotNull(WebUtils.getAuthentication(context));
        assertNotNull(WebUtils.getTicketGrantingTicket(context));
    }
This is {@link ConfirmLogoutActionTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-actions/src/test/java/org/apereo/cas/web/flow/ConfirmLogoutActionTests.java