private static void setRequestAttributes() {
        val request = new MockHttpServletRequest();
        request.setRequestURI("https://cas.example.org/cas/login?key1=value1");
        RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(request, new MockHttpServletResponse()));
    }
This is {@link RestfulUrlTemplateResolverTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-thymeleaf/src/test/java/org/apereo/cas/web/view/RestfulUrlTemplateResolverTests.java