@Test
    void verifyDefaultRequestForUrl() {
        val request = new MockHttpServletRequest();
        request.setPreferredLocales(List.of(Locale.FRENCH));
        request.setRequestURI("/login");
        val response = new MockHttpServletResponse();
        val resolver = new SessionLocaleResolver();
        request.setAttribute(DispatcherServlet.LOCALE_RESOLVER_ATTRIBUTE, resolver);
        val interceptor = getInterceptor(false);
        interceptor.setSupportedFlows(List.of(CasWebflowConfigurer.FLOW_ID_LOGIN));
        interceptor.preHandle(request, response, new Object());
        assertEquals(Locale.FRENCH, resolver.resolveLocale(request));
    }
This is {@link CasLocaleChangeInterceptorTests}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-web/src/test/java/org/apereo/cas/web/support/CasLocaleChangeInterceptorTests.java