@Test
    void verifyImportExport() throws Throwable {
        val id1 = UUID.randomUUID().toString();
        register(RegisteredServiceTestUtils.getAuthentication(id1));
        val export = webAuthnRegisteredDevicesEndpoint.export();
        assertEquals(HttpStatus.OK, export.getStatusCode());

        val request = new MockHttpServletRequest();
        val toSave = getCredentialRegistration(RegisteredServiceTestUtils.getAuthentication(UUID.randomUUID().toString()));
        val content = WebAuthnUtils.getObjectMapper().writeValueAsString(toSave);
        request.setContent(content.getBytes(StandardCharsets.UTF_8));
        assertEquals(HttpStatus.CREATED, webAuthnRegisteredDevicesEndpoint.importAccount(request).getStatusCode());
    }
This is {@link WebAuthnRegisteredDevicesEndpointTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-webauthn/src/test/java/org/apereo/cas/webauthn/web/WebAuthnRegisteredDevicesEndpointTests.java