@Test
    void checkAccountNotFound() {
        val registry = new PermissiveYubiKeyAccountRegistry(new LinkedHashMap<>(),
            new DefaultYubiKeyAccountValidator(YubicoClient.getClient(CLIENT_ID, SECRET_KEY)));
        registry.setCipherExecutor(CipherExecutor.noOpOfSerializableToString());
        val handler = new YubiKeyAuthenticationHandler(StringUtils.EMPTY,
            null, PrincipalFactoryUtils.newPrincipalFactory(),
            YubicoClient.getClient(CLIENT_ID, SECRET_KEY),
            registry, null, new DirectObjectProvider<>(mock(MultifactorAuthenticationProvider.class)));
        assertThrows(AccountNotFoundException.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