@Test
        void verifyTerminateActionRequests() throws Throwable {
            val tgt = new MockTicketGrantingTicket(RegisteredServiceTestUtils.getAuthentication());
            getTicketRegistry().addTicket(tgt);
            val context = MockRequestContext.create(applicationContext);
            context.setParameter(TerminateSessionAction.REQUEST_PARAM_LOGOUT_REQUEST_CONFIRMED, "true");
            WebUtils.putTicketGrantingTicketInScopes(context, tgt.getId());
            WebUtils.putAuthentication(tgt.getAuthentication(), context);
            assertEquals(CasWebflowConstants.TRANSITION_ID_REDIRECT, action.execute(context).getId());
            assertNull(getTicketRegistry().getTicket(tgt.getId()));
            assertTrue(WebUtils.getLogoutRequests(context).isEmpty());
        }
This is {@link TerminateSessionActionTests}.

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