@Test
    void verifyAcct() {
        val registry = mock(BaseYubiKeyAccountRegistry.class);
        when(registry.getAccount(anyString())).thenCallRealMethod();
        when(registry.getAccountInternal(anyString())).thenThrow(new RuntimeException());
        assertFalse(registry.getAccount("cas").isPresent());
    }
This is {@link YubiKeyAccountRegistryTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-yubikey-core/src/test/java/org/apereo/cas/adaptors/yubikey/registry/YubiKeyAccountRegistryTests.java