@Override
  public void logoutSuccess(HttpRequest request, @Nullable String login) {
    checkRequest(request);
    if (!LOGGER.isDebugEnabled()) {
      return;
    }
    LOGGER.debug("logout success [IP|{}|{}][login|{}]",
      request.getRemoteAddr(), getAllIps(request),
      preventLogFlood(emptyIfNull(login)));
  }
@Test
  public void logout_success_fails_with_NPE_if_request_is_null() {
    logTester.setLevel(Level.INFO);

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