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

        val tgt = new MockTicketGrantingTicket("casuser-new");
        val added = (TicketGrantingTicket) getTicketRegistry().addTicket(tgt);
        WebUtils.putTicketGrantingTicketInScopes(context, added);
        WebUtils.putRegisteredService(context, RegisteredServiceTestUtils.getRegisteredService());
        
        prepareRequestContextForAuthentication(context, added.getAuthentication());
        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