  @Test
  public void extractsPathWithQueryStringAndPathInfo() {

    when(servletRequest.getPathInfo()).thenReturn("/id");
    when(requestContext.getRequestQueryParams()).thenReturn(queryParams);

    String path = extractor.path(requestContext);

    assertThat(path).isEqualTo("/root/path/to/resource/id?n=3&n=5");
  }