@Test
    void verifyOperationByRequestContext() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.getFlashScope().put(MultifactorProviderSelectedAction.PARAMETER_SELECTED_MFA_PROVIDER, new TestMultifactorAuthenticationProvider());
        val result = action.execute(context);
        assertEquals(TestMultifactorAuthenticationProvider.ID, result.getId());

        context.setRequestCookiesFromResponse();
        val cookie = multifactorAuthenticationProviderSelectionCookieGenerator.retrieveCookieValue(context.getHttpServletRequest());
        assertNotNull(cookie);
        assertEquals(TestMultifactorAuthenticationProvider.ID, cookie);
    }
This is {@link MultifactorProviderSelectedActionTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-webflow-mfa/src/test/java/org/apereo/cas/web/flow/actions/composite/MultifactorProviderSelectedActionTests.java