@Test
    void verifyAction() throws Throwable {
        val resolver = mock(CasWebflowEventResolver.class);
        when(resolver.resolveSingle(any())).thenReturn(new EventFactorySupport()
            .event(this, CasWebflowConstants.TRANSITION_ID_SUCCESS));
        val action = new OneTimeTokenAuthenticationWebflowAction(resolver);

        val context = MockRequestContext.create();
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, action.execute(context).getId());
    }
This is {@link OneTimeTokenAuthenticationWebflowActionTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-otp-mfa/src/test/java/org/apereo/cas/otp/web/flow/OneTimeTokenAuthenticationWebflowActionTests.java