@Test
        void verifyOperation() throws Throwable {
            val context = MockRequestContext.create(applicationContext);
            val authentication = RegisteredServiceTestUtils.getAuthentication();
            WebUtils.putAuthentication(authentication, context);
            WebUtils.putAuthenticationResult(RegisteredServiceTestUtils.getAuthenticationResult(authentication.getPrincipal().getId()), context);
            WebUtils.putRegisteredService(context, RegisteredServiceTestUtils.getRegisteredService());
            val provider = MultifactorAuthenticationUtils.getMultifactorAuthenticationProviderById(
                DuoSecurityMultifactorAuthenticationProperties.DEFAULT_IDENTIFIER, applicationContext).orElseThrow();
            MultifactorAuthenticationWebflowUtils.putMultifactorAuthenticationProvider(context, provider);
            val result = duoUniversalPromptPrepareLoginAction.execute(context);
            assertNotNull(result);
            assertNotNull(result.getAttributes().get("result"));
            assertTrue(context.getFlowScope().contains("duoUniversalPromptLoginUrl"));
        }
This is {@link DuoSecurityUniversalPromptPrepareLoginActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-duo/src/test/java/org/apereo/cas/adaptors/duo/web/flow/action/DuoSecurityUniversalPromptPrepareLoginActionTests.java