HttpServletAdapter extends HttpServerAdapter<HttpServletRequest, HttpServletResponse> { @Override public int statusCodeAsInt(HttpServletResponse response) { return servlet.status(response); }  HttpServletResponse adaptResponse(HttpServletRequest req, HttpServletResponse resp); @Override boolean parseClientIpAndPort(HttpServletRequest req, Span span); @Override String method(HttpServletRequest request); @Override String path(HttpServletRequest request); @Override String url(HttpServletRequest request); @Override String requestHeader(HttpServletRequest request, String name); @Override String methodFromResponse(HttpServletResponse response); @Override String route(HttpServletResponse response); @Override @Nullable Integer statusCode(HttpServletResponse response); @Override int statusCodeAsInt(HttpServletResponse response);  }
@Test public void statusCodeAsInt() { when(response.getStatus()).thenReturn(200); assertThat(adapter.statusCodeAsInt(response)).isEqualTo(200); assertThat(adapter.statusCode(response)).isEqualTo(200); }