@ParameterizedTest
    @MethodSource("oneTimeTokenAccountProvider")
    void verifyCreateAccount(final OneTimeTokenAccount account) throws Throwable {
        googleAuthenticatorAccountRegistry.save(account);

        val context = MockRequestContext.create(applicationContext);
        if (StringUtils.isNotBlank(account.getTenant())) {
            context.setContextPath("/tenants/%s/login".formatted(account.getTenant()));
        }
        
        val provider = TestMultifactorAuthenticationProvider.registerProviderIntoApplicationContext(applicationContext);
        MultifactorAuthenticationWebflowUtils.putMultifactorAuthenticationProvider(context, provider);
        WebUtils.putAuthentication(RegisteredServiceTestUtils.getAuthentication(account.getUsername()), context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_REGISTER, googleAccountCreateRegistrationAction.execute(context).getId());
        assertTrue(context.getFlowScope().contains(OneTimeTokenAccountCreateRegistrationAction.FLOW_SCOPE_ATTR_ACCOUNT));
        assertTrue(context.getFlowScope().contains(OneTimeTokenAccountCreateRegistrationAction.FLOW_SCOPE_ATTR_QR_IMAGE_BASE64));
    }
This is {@link GoogleAuthenticatorAccountCreateRegistrationActionTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-gauth/src/test/java/org/apereo/cas/gauth/web/flow/GoogleAuthenticatorAccountCreateRegistrationActionTests.java