@Test
    void verifyFails() throws Throwable {
        val client = mock(YubicoClient.class);
        when(client.getWsapiUrls()).thenThrow(new RuntimeException());
        val http = mock(HttpClient.class);
        when(http.sendMessageToEndPoint(any(URL.class))).thenReturn(new HttpMessage(new URI("http://localhost:1234").toURL(), "message"));
        val provider = new YubiKeyMultifactorAuthenticationProvider(client, http);
        val service = MultifactorAuthenticationTestUtils.getRegisteredService();
        assertFalse(provider.isAvailable(service));
    }
This is {@link YubiKeyMultifactorAuthenticationProviderTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-yubikey-core-mfa/src/test/java/org/apereo/cas/adaptors/yubikey/YubiKeyMultifactorAuthenticationProviderTests.java