@Override
  public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
    doHttpFilter((HttpServletRequest) req, (HttpServletResponse) resp, chain);
  }
@Test
  public void ifRequestUriIsNull_returnBadRequest() throws ServletException, IOException {
    HttpServletRequest request = newRequest("GET", "/");
    when(request.getRequestURI()).thenReturn(null);

    underTest.doFilter(request, response, chain);
    verify(response).setStatus(HttpServletResponse.SC_BAD_REQUEST);
  }