private static DuoSecurityAuthenticationHandler getAuthenticationHandler(
        final DuoSecurityMultifactorAuthenticationProvider provider) {
        return new DuoSecurityAuthenticationHandler(null,
            mock(ServicesManager.class), PrincipalFactoryUtils.newPrincipalFactory(),
            new DirectObjectProvider<>(provider), 0, List.of(MultifactorAuthenticationPrincipalResolver.identical()));
    }
This is {@link DuoSecurityAuthenticationHandlerTests}.

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