@Test
    void verifyRegistration() throws Exception {
        val requestContext = MockRequestContext.create(applicationContext);
        MultifactorAuthenticationWebflowUtils.putMultifactorDeviceRegistrationEnabled(requestContext, true);
        assertTrue(MultifactorAuthenticationWebflowUtils.isMultifactorDeviceRegistrationEnabled(requestContext));

        val ac = OneTimeTokenAccount.builder()
            .validationCode(123456)
            .username("casuser")
            .name("Example")
            .build();
        MultifactorAuthenticationWebflowUtils.putOneTimeTokenAccount(requestContext, ac);
        assertNotNull(MultifactorAuthenticationWebflowUtils.getOneTimeTokenAccount(requestContext, OneTimeTokenAccount.class));
        MultifactorAuthenticationWebflowUtils.putOneTimeTokenAccounts(requestContext, List.of(ac));
        assertNotNull(MultifactorAuthenticationWebflowUtils.getOneTimeTokenAccounts(requestContext));
    }
This is {@link MultifactorAuthenticationWebflowUtilsTests}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-webflow-mfa-api/src/test/java/org/apereo/cas/web/flow/MultifactorAuthenticationWebflowUtilsTests.java