@Test
    void verifyOperation() {
        endpoint.deleteAll();
        val username = UUID.randomUUID().toString();
        assertTrue(endpoint.load().isEmpty());
        assertNull(endpoint.get(username));

        val request = YubiKeyDeviceRegistrationRequest.builder().username(username)
            .token(UUID.randomUUID().toString()).name(UUID.randomUUID().toString()).build();
        assertTrue(yubiKeyAccountRegistry.registerAccountFor(request));
        assertNotNull(endpoint.get(username));
        assertFalse(endpoint.load().isEmpty());

        val entity = endpoint.export();
        assertEquals(HttpStatus.OK, entity.getStatusCode());

        endpoint.delete(username);
        assertNull(endpoint.get(username));
        endpoint.deleteAll();
        assertTrue(endpoint.load().isEmpty());
    }
This is {@link YubiKeyAccountRegistryEndpointTests}.

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