public static MultifactorAuthenticationProvider getDuoSecurityMultifactorAuthenticationProvider() {
        val provider = mock(DuoSecurityMultifactorAuthenticationProvider.class);
        when(provider.getId()).thenReturn(DuoSecurityMultifactorAuthenticationProperties.DEFAULT_IDENTIFIER);
        when(provider.matches(argThat(DuoSecurityMultifactorAuthenticationProperties.DEFAULT_IDENTIFIER::matches))).thenReturn(true);
        return provider;
    }
This is {@link BaseDuoSecurityTests}.

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