@Test
    void verifyExpireByDate() {
        val user = UUID.randomUUID().toString();
        val record = MultifactorAuthenticationTrustRecord.newInstance(user, "geography", "fingerprint");
        val now = ZonedDateTime.now(ZoneOffset.UTC).truncatedTo(ChronoUnit.SECONDS);
        record.setRecordDate(now.minusDays(2));
        getMfaTrustEngine().save(record);
        assertEquals(1, getMfaTrustEngine().get(now.minusDays(30)).size());
        assertEquals(0, getMfaTrustEngine().get(now.minusDays(1)).size());
    }
This is {@link RedisMultifactorAuthenticationTrustStorageTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-trusted-mfa-redis/src/test/java/org/apereo/cas/trusted/authentication/storage/RedisMultifactorAuthenticationTrustStorageTests.java