@Test
void redirectURL() {

    when(request.hostName()).thenReturn("host");
    when(request.path()).thenReturn("/path");
    Map<String, String> queryParams = new LinkedHashMap<>();
    queryParams.put("key1", "value1");
    queryParams.put("key2", "value2");
    queryParams.put("key3", "");
    when(request.queryParams()).thenReturn(queryParams);
    String redirectURL = interceptor.redirectURL(request);
    assertThat(redirectURL).isEqualTo("https://host/path?key1=value1&key2=value2&key3=");
}