@Test
public void shouldRedirectToAbsoluteUrlWhenSchemeIsConfigured() throws Exception {

    // given
    when(servletContext.getInitParameter("scheme")).thenReturn("https");
    // when
    redirector.doRedirect(request, response, "/path");
    // then
    verify(response).sendRedirect("https://server01:9000/context-path/application-context-path/path");
}