@Test
    void verifyRegistrationDisabled() throws Exception {
        val context = MockRequestContext.create(applicationContext);
        WebUtils.putAuthentication(RegisteredServiceTestUtils.getAuthentication(UUID.randomUUID().toString()), context);
        MultifactorAuthenticationWebflowUtils.putMultifactorDeviceRegistrationEnabled(context, false);
        googleAccountProfilePrepareAction.execute(context);
        assertNotNull(MultifactorAuthenticationWebflowUtils.getMultifactorAuthenticationProvider(context));
        assertFalse(context.getFlowScope().getBoolean("gauthAccountProfileRegistrationEnabled"));
    }
This is {@link GoogleMultifactorAuthenticationAccountProfilePrepareActionTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-gauth/src/test/java/org/apereo/cas/gauth/web/flow/account/GoogleMultifactorAuthenticationAccountProfilePrepareActionTests.java