@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_failure_with_NPE_if_request_is_null() {
    logTester.setLevel(Level.INFO);

    assertThatThrownBy(() -> underTest.logoutFailure(null, "bad csrf"))
      .isInstanceOf(NullPointerException.class)
      .hasMessage("request can't be null");
  }