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

        val tgt = new MockTicketGrantingTicket("casuser");
        getTicketRegistry().addTicket(tgt);
        getTicketGrantingTicketCookieGenerator().addCookie(context.getHttpServletRequest(), context.getHttpServletResponse(), tgt.getId());
        context.setRequestCookiesFromResponse();
        assertNull(action.execute(context));
        assertNotNull(WebUtils.getTicketGrantingTicket(context));
    }
This is {@link FetchTicketGrantingTicketActionTests}.

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