@Override
  public void logoutFailure(HttpRequest request, String errorMessage) {
    checkRequest(request);
    requireNonNull(errorMessage, "error message can't be null");
    if (!LOGGER.isDebugEnabled()) {
      return;
    }
    LOGGER.debug("logout failure [error|{}][IP|{}|{}]",
      emptyIfNull(errorMessage),
      request.getRemoteAddr(), getAllIps(request));
  }
@Test
  public void logout_does_not_interact_with_request_if_log_level_is_above_DEBUG() {
    HttpRequest request = mock(HttpRequest.class);
    logTester.setLevel(Level.INFO);

    underTest.logoutFailure(request, "bad csrf");

    verifyNoInteractions(request);
  }