HttpServletRequestWrapper extends HttpServerRequest { @Override public final String method() { return delegate.getMethod(); } 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 method() { when(request.getMethod()).thenReturn("POST"); assertThat(wrapper.method()) .isEqualTo("POST"); }