@Override
        public DuoSecurityClient getDuoClient() {
            val client = mock(DuoSecurityClient.class);
            when(client.getDuoApiHost()).thenReturn(properties.getDuoApiHost());
            when(client.getDuoIntegrationKey()).thenReturn(properties.getDuoIntegrationKey());
            when(client.getDuoSecretKey()).thenReturn(properties.getDuoSecretKey());
            when(client.getInstance()).thenReturn(mock(Client.class));
            return client;
        }
This is {@link DuoSecurityAuthenticationServiceTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-duo-core/src/test/java/org/apereo/cas/adaptors/duo/authn/DuoSecurityAuthenticationServiceTests.java