@Test
    void verifyOperation() throws Exception {
        val requestContext = MockRequestContext.create(applicationContext);
        WebUtils.putServiceIntoFlashScope(requestContext, RegisteredServiceTestUtils.getService());
        MultifactorAuthenticationWebflowUtils.putMultifactorAuthenticationProvider(requestContext, casTwilioMultifactorAuthenticationProvider);
        val principal = RegisteredServiceTestUtils.getPrincipal("casuser", Map.of("phoneNumber", List.of("+13247463546")));
        WebUtils.putAuthentication(RegisteredServiceTestUtils.getAuthentication(principal), requestContext);
        val result = mfaTwilioMultifactorSendTokenAction.execute(requestContext);
        assertEquals(CasWebflowConstants.TRANSITION_ID_ERROR, result.getId());
    }
This is {@link CasTwilioMultifactorSendTokenActionTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-twilio-mfa/src/test/java/org/apereo/cas/mfa/CasTwilioMultifactorSendTokenActionTests.java