@Test
    void verifyImportExport() throws Throwable {
        var record = MultifactorAuthenticationTrustRecord.newInstance(
            UUID.randomUUID().toString(), "london", "fingerprint");
        val request = new MockHttpServletRequest();
        val content = MAPPER.writeValueAsString(record);
        request.setContent(content.getBytes(StandardCharsets.UTF_8));
        assertEquals(HttpStatus.CREATED, endpoint.importDevice(request).getStatusCode());
        var entity = endpoint.export();
        assertEquals("attachment", entity.getHeaders().getContentDisposition().getType());
        entity = endpoint.exportUserDevices(record.getPrincipal());
        assertEquals("attachment", entity.getHeaders().getContentDisposition().getType());
    }
This is {@link MultifactorAuthenticationTrustedDevicesReportEndpointTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-trusted-mfa/src/test/java/org/apereo/cas/trusted/web/MultifactorAuthenticationTrustedDevicesReportEndpointTests.java