@Test
    void verifyOperation() throws Throwable {
        val context = getMockRequestContext();
        val bean = new MultifactorAuthenticationTrustBean().setDeviceName("ApereoCAS");
        MultifactorAuthenticationTrustUtils.putMultifactorAuthenticationTrustRecord(context, bean);
        val result = mfaSetTrustAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
        val record = result.getAttributes().get("result", MultifactorAuthenticationTrustRecord.class);
        context.setParameter("key", record.getRecordKey());
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, mfaRemoveAction.execute(context).getId());
    }
This is {@link MultifactorAuthenticationRemoveTrustedDeviceActionTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-trusted-mfa/src/test/java/org/apereo/cas/trusted/web/flow/MultifactorAuthenticationRemoveTrustedDeviceActionTests.java