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