ImmutableDittoLoggingAdapter extends ThreadSafeDittoLoggingAdapter { static ImmutableDittoLoggingAdapter of(final Supplier<DiagnosticLoggingAdapter> diagnosticLoggingAdapterFactory) { return newInstance(checkNotNull(diagnosticLoggingAdapterFactory, "diagnosticLoggingAdapterFactory"), Map.of()); } private  ImmutableDittoLoggingAdapter(final Supplier<DiagnosticLoggingAdapter> diagnosticLoggingAdapterFactory); @Override ImmutableDittoLoggingAdapter withCorrelationId(@Nullable final CharSequence correlationId); @Override ImmutableDittoLoggingAdapter withCorrelationId(final WithDittoHeaders<?> withDittoHeaders); @Override ImmutableDittoLoggingAdapter withCorrelationId(final DittoHeaders dittoHeaders); @Override ImmutableDittoLoggingAdapter discardCorrelationId(); @Override ImmutableDittoLoggingAdapter withMdcEntry(final CharSequence key, @Nullable final CharSequence value); @Override ImmutableDittoLoggingAdapter withMdcEntries(final CharSequence k1, @Nullable final CharSequence v1,
            final CharSequence k2, @Nullable final CharSequence v2); @Override ImmutableDittoLoggingAdapter withMdcEntries(final CharSequence k1, @Nullable final CharSequence v1,
            final CharSequence k2, @Nullable final CharSequence v2,
            final CharSequence k3, @Nullable final CharSequence v3); @Override ImmutableDittoLoggingAdapter withMdcEntry(final MdcEntry mdcEntry, final Seq<MdcEntry> furtherMdcEntries); @Override ImmutableDittoLoggingAdapter withMdcEntry(final MdcEntry mdcEntry, final MdcEntry... furtherMdcEntries); @Override ImmutableDittoLoggingAdapter removeMdcEntry(final CharSequence key); @Override boolean isErrorEnabled(); @Override boolean isWarningEnabled(); @Override boolean isInfoEnabled(); @Override boolean isDebugEnabled(); @Override void notifyError(final String message); @Override void notifyError(final Throwable cause, final String message); @Override void notifyWarning(final String message); @Override void notifyInfo(final String message); @Override void notifyDebug(final String message);  }
@Test public void getInstanceWithNullDiagnosticLoggingAdapterFactory() { assertThatNullPointerException() .isThrownBy(() -> ImmutableDittoLoggingAdapter.of(null)) .withMessage("The diagnosticLoggingAdapterFactory must not be null!") .withNoCause(); }