@Test
    void verifyImportOperation() throws Throwable {
        val toSave = YubiKeyDeviceRegistrationRequest.builder().username(UUID.randomUUID().toString())
            .token(UUID.randomUUID().toString()).name(UUID.randomUUID().toString()).build();

        val request = new MockHttpServletRequest();
        val content = MAPPER.writeValueAsString(toSave);
        request.setContent(content.getBytes(StandardCharsets.UTF_8));
        assertEquals(HttpStatus.CREATED, endpoint.importAccount(request).getStatusCode());
    }
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