@Override
  public String getPath() {
    return source.getRequestURI().replaceFirst(source.getContextPath(), "");
  }
@Test
  public void getPath() {
    when(source.getRequestURI()).thenReturn("/sonar/path/to/resource/search");
    when(source.getContextPath()).thenReturn("/sonar");

    assertThat(underTest.getPath()).isEqualTo("/path/to/resource/search");
  }