@Test
        void verifyUrlEncoding() throws Throwable {
            val url = "https://link.test.edu/web/cas?profile=Example Primo&targetURL=abc";
            val request = new MockHttpServletRequest();
            request.setRequestURI("/cas/login");
            request.addParameter(CasProtocolConstants.PARAMETER_SERVICE, url);
            val authn = RegisteredServiceTestUtils.getAuthentication();
            val registeredService = RegisteredServiceTestUtils.getRegisteredService();
            val service = RegisteredServiceTestUtils.getService(url);
            assertTrue(oidcMultifactorAuthenticationTrigger.isActivated(authn, registeredService,
                request, new MockHttpServletResponse(), service).isEmpty());
        }
This is {@link OidcMultifactorAuthenticationTriggerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/web/flow/OidcMultifactorAuthenticationTriggerTests.java