@Test
    void checkReplayedAuthn() {
        val handler = getHandler(YubicoClient.getClient(CLIENT_ID, SECRET_KEY));
        assertThrows(FailedLoginException.class, () -> handler.authenticate(new YubiKeyCredential(OTP), mock(Service.class)));
    }
Test cases for {@link YubiKeyAuthenticationHandler}.

@author Misagh Moayyed
@since 4.1
support/cas-server-support-yubikey/src/test/java/org/apereo/cas/adaptors/yubikey/YubiKeyAuthenticationHandlerTests.java