@Test
    void verifySetAnExpireByKey() {
        val user = UUID.randomUUID().toString();
        var record = MultifactorAuthenticationTrustRecord.newInstance(user, "geography", "fingerprint");
        record = getMfaTrustEngine().save(record);
        assertNotNull(getMfaTrustEngine().get(record.getId()));
        
        val records = getMfaTrustEngine().get(user);
        assertEquals(1, records.size());
        getMfaTrustEngine().remove(records.stream().findFirst().get().getRecordKey());
        assertTrue(getMfaTrustEngine().get(user).isEmpty());
    }
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