private MockDuoSecurityAuthenticationService getAuthenticationService(final int port) {
        val properties = new DuoSecurityMultifactorAuthenticationProperties()
            .setDuoApiHost("localhost:" + port)
            .setDuoSecretKey("0K4VewoOPTar47vFwdUfg9SvAm8GF6yyyaBWCk61")
            .setDuoIntegrationKey("DICLHRWL1KQK5EUAQP46");
        val userCache = Caffeine.newBuilder().<String, DuoSecurityUserAccount>build();
        return new MockDuoSecurityAuthenticationService(properties, httpClient,
            List.of(MultifactorAuthenticationPrincipalResolver.identical()), userCache, mock(TenantExtractor.class));
    }
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