protected MockRequestContext buildRequestContextFor(final Principal principal) throws Exception {
        val context = MockRequestContext.create(applicationContext);
        WebUtils.putServiceIntoFlashScope(context, RegisteredServiceTestUtils.getService());
        WebUtils.putAuthentication(RegisteredServiceTestUtils.getAuthentication(principal), context);
        MultifactorAuthenticationWebflowUtils.putMultifactorAuthenticationProvider(context, casSimpleMultifactorAuthenticationProvider);
        return context;
    }
This is {@link BaseCasSimpleMultifactorSendTokenActionTests}.

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