@Override
  public void doFilter(HttpRequest request, HttpResponse response, FilterChain chain) {
    if (!request.getMethod().equals(POST.name())) {
      response.setStatus(HTTP_BAD_REQUEST);
      return;
    }
    logout(request, response);
  }
@Test
  public void return_400_on_get_request() {
    when(request.getMethod()).thenReturn("GET");

    underTest.doFilter(request, response, chain);

    verifyNoInteractions(jwtHttpHandler, chain);
    verify(response).setStatus(400);
  }