@Test
        void verifyRegisterDevice() throws Throwable {
            val bean = new MultifactorAuthenticationTrustBean();
            MultifactorAuthenticationTrustUtils.putMultifactorAuthenticationTrustRecord(context, bean);
            assertNull(bean.getDeviceName());
            assertEquals(CasWebflowConstants.TRANSITION_ID_STORE, mfaPrepareTrustDeviceViewAction.execute(context).getId());
            assertFalse(bean.getDeviceName().isBlank());
            assertTrue(bean.getDeviceName().startsWith(ClientInfoHolder.getClientInfo().getClientIpAddress()));
        }
This is {@link MultifactorAuthenticationPrepareTrustDeviceViewActionTests}.

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