@Test
        void verifyRedirectToTrustedUrl() throws Throwable {
            val context = getMockRequestContext();
            WebUtils.putLogoutRedirectUrl(context.getHttpServletRequest(), "https://github.com/apereo/cas");
            var response = defaultLogoutRedirectionStrategy.handle(context.getHttpServletRequest(), context.getHttpServletResponse());
            assertFalse(response.getLogoutRedirectUrl().isEmpty());
            assertEquals("https://github.com/apereo/cas", response.getLogoutRedirectUrl().get());
        }
This is {@link DefaultLogoutRedirectionStrategyTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-logout/src/test/java/org/apereo/cas/logout/DefaultLogoutRedirectionStrategyTests.java