@Test
    void verifySetDeviceWithNoName() throws Throwable {
        val context = getMockRequestContext();
        val bean = new MultifactorAuthenticationTrustBean().setDeviceName(StringUtils.EMPTY);
        MultifactorAuthenticationTrustUtils.putMultifactorAuthenticationTrustRecord(context, bean);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, mfaSetTrustAction.execute(context).getId());
    }
This is {@link MultifactorAuthenticationSetTrustActionTests}.

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