@Test
        void verifyReusingExistingTokens() throws Throwable {
            val pair = createToken("casuser");

            val theToken = pair.getKey();
            assertNotNull(ticketRegistry.getTicket(theToken));

            val event = mfaSimpleMultifactorSendTokenAction.execute(pair.getValue());
            assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, event.getId());

            val token = new CasSimpleMultifactorTokenCredential(theToken);
            val result = authenticationHandler.authenticate(token, mock(Service.class));
            assertNotNull(result);
            assertNull(ticketRegistry.getTicket(theToken));
        }
This is {@link CasSimpleMultifactorSendTokenActionTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-simple-mfa/src/test/java/org/apereo/cas/mfa/simple/web/flow/CasSimpleMultifactorSendTokenActionTests.java