@Test
    void verifyOperation() {
        val registry = new OpenYubiKeyAccountRegistry(mock(YubiKeyAccountValidator.class));
        assertFalse(registry.getAccount("casuser").isEmpty());
        assertTrue(registry.getAccounts().isEmpty());
        assertDoesNotThrow(() -> {
            registry.delete("casuser");
            registry.delete("casuser", 12345);
            registry.deleteAll();
        });
        assertNotNull(registry.save(YubiKeyDeviceRegistrationRequest.builder().build(),
            YubiKeyRegisteredDevice.builder().build()));
        assertTrue(registry.isYubiKeyRegisteredFor("casuser"));
        assertTrue(registry.isYubiKeyRegisteredFor("casuser", "publicId"));
        assertTrue(registry.registerAccountFor(YubiKeyDeviceRegistrationRequest.builder().build()));
        assertTrue(registry.update(YubiKeyAccount.builder().build()));
        assertNotNull(registry.save(YubiKeyAccount.builder().build()));
    }
This is {@link OpenYubiKeyAccountRegistryTests}.

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