@Bean
        public DuoSecurityMultifactorAuthenticationProvider dummyDuoSecurityProvider() throws Exception {
            val acct = new DuoSecurityUserAccount(UUID.randomUUID().toString())
                .setProviderId(DuoSecurityMultifactorAuthenticationProperties.DEFAULT_IDENTIFIER);
            acct.setDevices(List.of(DuoSecurityUserDevice.builder()
                .id(UUID.randomUUID().toString())
                .model("Samsung S20")
                .name("My Device")
                .number("1234567890")
                .platform("Android")
                .type("Android Phone - Google")
                .build()));
            val adminApi = mock(DuoSecurityAdminApiService.class);
            when(adminApi.getDuoSecurityUserAccount(anyString())).thenReturn(Optional.of(acct));
            val provider = mock(DuoSecurityMultifactorAuthenticationProvider.class);
            val duoService = mock(DuoSecurityAuthenticationService.class);
            when(duoService.getAdminApiService()).thenReturn(Optional.of(adminApi));
            when(provider.getId()).thenReturn(DuoSecurityMultifactorAuthenticationProperties.DEFAULT_IDENTIFIER);
            when(provider.getDuoAuthenticationService()).thenReturn(duoService);
            when(provider.getDeviceManager()).thenReturn(new DuoSecurityMultifactorAuthenticationDeviceManager(provider));
            return provider;
        }
This is {@link DuoSecurityMultifactorAccountProfileWebflowConfigurerTests}.

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