@Test
    void verifyOperation() throws Throwable {
        val context = getMockRequestContext();

        val bean = new MultifactorAuthenticationTrustBean().setDeviceName("ApereoCAS");
        MultifactorAuthenticationTrustUtils.putMultifactorAuthenticationTrustRecord(context, bean);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, mfaSetTrustAction.execute(context).getId());

        val result = action.execute(context);
        assertNull(result);
        assertEquals(1, MultifactorAuthenticationTrustUtils.getMultifactorAuthenticationTrustedDevices(context).size());
    }
This is {@link DefaultMultifactorAuthenticationTrustedDeviceProviderActionTests}.

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