@Test
    void verifyRemovals() throws Throwable {
        var record = MultifactorAuthenticationTrustRecord.newInstance(UUID.randomUUID().toString(), "geography", "fingerprint");
        mfaTrustEngine.save(record);

        mockMvc.perform(delete("/actuator/multifactorTrustedDevices/clean")
            .contentType(MediaType.APPLICATION_FORM_URLENCODED)
            .accept(MediaType.APPLICATION_JSON)
        ).andExpect(status().isOk());

        val date = LocalDateTime.now(Clock.systemUTC()).plusDays(1);
        mockMvc.perform(delete("/actuator/multifactorTrustedDevices/expire")
                .queryParam("expiration", date.toString())
            .contentType(MediaType.APPLICATION_FORM_URLENCODED)
            .accept(MediaType.APPLICATION_JSON)
        ).andExpect(status().isOk());

        assertFalse(endpoint.devices().isEmpty());
    }
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