HttpServletRequestWrapper extends HttpServerRequest { @Override public final String path() { return delegate.getRequestURI(); } HttpServletRequestWrapper(HttpServletRequest delegate); static HttpServerRequest create(HttpServletRequest request); @Override final Object unwrap(); @Override boolean parseClientIpAndPort(Span span); @Override final String method(); @Override String route(); @Override final String path(); @Override String url(); @Override final String header(String name);  }
@Test public void path_doesntCrashOnNullUrl() { assertThat(wrapper.path()) .isNull(); }
@Test public void path_getRequestURI() { when(request.getRequestURI()).thenReturn("/bar"); assertThat(wrapper.path()) .isEqualTo("/bar"); }