@Bean
        public DuoSecurityClient duoUniversalPromptAuthenticationClient(final CasConfigurationProperties casProperties) {
            val client = mock(DuoSecurityClient.class);
            val duo = casProperties.getAuthn().getMfa().getDuo().getFirst();
            when(client.getDuoApiHost()).thenReturn(duo.getDuoApiHost());
            when(client.getDuoIntegrationKey()).thenReturn(duo.getDuoIntegrationKey());
            when(client.getDuoSecretKey()).thenReturn(duo.getDuoSecretKey());
            when(client.getInstance()).thenReturn(mock(Client.class));
            return client;
        }
This is {@link DuoSecurityPasswordlessUserAccountStoreTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-duo/src/test/java/org/apereo/cas/adaptors/duo/authn/passwordless/DuoSecurityPasswordlessUserAccountStoreTests.java