@Test
    void verifyExpireByDate() {
        val r = MultifactorAuthenticationTrustRecord.newInstance("castest", "geography", "fingerprint");
        val now = ZonedDateTime.now(ZoneOffset.UTC).truncatedTo(ChronoUnit.SECONDS);
        r.setRecordDate(now.minusDays(2));
        getMfaTrustEngine().save(r);
        assertFalse(getMfaTrustEngine().get(r.getPrincipal()).isEmpty());
        assertEquals(1, getMfaTrustEngine().get(now.minusDays(30)).size());
        assertEquals(0, getMfaTrustEngine().get(now.minusDays(1)).size());
    }
This is {@link DynamoDbMultifactorAuthenticationTrustStorageTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-trusted-mfa-dynamodb/src/test/java/org/apereo/cas/trusted/authentication/storage/DynamoDbMultifactorAuthenticationTrustStorageTests.java