LoggingDecoratorBuilder { public LoggingDecoratorBuilder responseHeadersSanitizer( BiFunction<? super RequestContext, ? super HttpHeaders, ?> responseHeadersSanitizer) { this.responseHeadersSanitizer = requireNonNull(responseHeadersSanitizer, "responseHeadersSanitizer"); return this; }  LoggingDecoratorBuilder logger(Logger logger); LoggingDecoratorBuilder logger(String loggerName); LoggingDecoratorBuilder requestLogLevel(LogLevel requestLogLevel); LoggingDecoratorBuilder successfulResponseLogLevel(LogLevel successfulResponseLogLevel); LoggingDecoratorBuilder failureResponseLogLevel(LogLevel failedResponseLogLevel); LoggingDecoratorBuilder requestLogLevelMapper(
            Function<? super RequestOnlyLog, LogLevel> requestLogLevelMapper); LoggingDecoratorBuilder responseLogLevelMapper(
            Function<? super RequestLog, LogLevel> responseLogLevelMapper); LoggingDecoratorBuilder requestHeadersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> requestHeadersSanitizer); LoggingDecoratorBuilder responseHeadersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> responseHeadersSanitizer); LoggingDecoratorBuilder requestTrailersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> requestTrailersSanitizer); LoggingDecoratorBuilder responseTrailersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> responseTrailersSanitizer); LoggingDecoratorBuilder headersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> headersSanitizer); LoggingDecoratorBuilder requestContentSanitizer(
            BiFunction<? super RequestContext, Object, ?> requestContentSanitizer); LoggingDecoratorBuilder responseContentSanitizer(
            BiFunction<? super RequestContext, Object, ?> responseContentSanitizer); LoggingDecoratorBuilder contentSanitizer(
            BiFunction<? super RequestContext, Object, ?> contentSanitizer); LoggingDecoratorBuilder responseCauseSanitizer(
            BiFunction<? super RequestContext, ? super Throwable, ?> responseCauseSanitizer); @Override String toString();  }
@Test void responseHeadersSanitizer() { assertThatThrownBy(() -> builder.responseHeadersSanitizer(nullBiFunction)) .isInstanceOf(NullPointerException.class); assertThat(builder.responseHeadersSanitizer()).isEqualTo(Functions.second()); builder.responseHeadersSanitizer(HEADER_SANITIZER); assertThat(builder.responseHeadersSanitizer()).isEqualTo(HEADER_SANITIZER); }