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

        val authentication = CoreAuthenticationTestUtils.getAuthentication();
        prepareRequestContextForAuthentication(context, authentication);
        val tgt = mock(TicketGrantingTicket.class);
        when(tgt.getId()).thenReturn("TGT-123456");
        WebUtils.putTicketGrantingTicketInScopes(context, tgt);

        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, action.execute(context).getId());
    }
This is {@link CreateTicketGrantingTicketActionTests}.

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