@Test
        void verifyPrepWithBypass() throws Throwable {
            val service = (BaseRegisteredService) WebUtils.getRegisteredService(context);
            val policy = new DefaultRegisteredServiceMultifactorPolicy();
            policy.setBypassTrustedDeviceEnabled(true);
            service.setMultifactorAuthenticationPolicy(policy);
            WebUtils.putRegisteredService(context, service);
            assertEquals(CasWebflowConstants.TRANSITION_ID_SKIP,
                mfaPrepareTrustDeviceViewAction.execute(context).getId());
        }
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