### Question:
CasLogoutSuccessHandler extends AbstractAuthenticationTargetUrlRequestHandler implements LogoutSuccessHandler { @Override public void onLogoutSuccess(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Authentication authentication) throws IOException, ServletException { super.handle(httpServletRequest, httpServletResponse, authentication); } CasLogoutSuccessHandler(URI casLogout, ServiceProperties serviceProperties); @Override void onLogoutSuccess(HttpServletRequest httpServletRequest,
            HttpServletResponse httpServletResponse, Authentication authentication);  }### Answer:
@Test public void onLogoutSuccess_WithService_ServiceAsQueryParameterValue() throws IOException, ServletException { ServiceProperties serviceProperties = new ServiceProperties(); serviceProperties.setService("http: CasLogoutSuccessHandler logoutSuccessHandler = new CasLogoutSuccessHandler(casLogout, serviceProperties); logoutSuccessHandler.onLogoutSuccess(request, response, null); String service = encode(serviceProperties.getService(), UTF_8.toString()); assertThat(response.getRedirectedUrl()) .isEqualTo(casLogout.toASCIIString() + "?service=" + service); }