ImmutableAdaptable implements Adaptable { public static ImmutableAdaptable of(final TopicPath topicPath, final Payload payload, @Nullable final DittoHeaders headers) { checkNotNull(topicPath, "topicPath"); checkNotNull(payload, "payload"); return new ImmutableAdaptable(topicPath, payload, headers); } private  ImmutableAdaptable(final TopicPath topicPath, final Payload payload, final DittoHeaders headers); static ImmutableAdaptable of(final TopicPath topicPath, final Payload payload,
            @Nullable final DittoHeaders headers); @Override TopicPath getTopicPath(); @Override Payload getPayload(); @Override @Deprecated Optional<DittoHeaders> getHeaders(); @Override boolean containsHeaderForKey(final CharSequence key); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString(); @Override DittoHeaders getDittoHeaders(); @Override Adaptable setDittoHeaders(@Nonnull final DittoHeaders dittoHeaders);  }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullTopicPath() { ImmutableAdaptable.of(null, null, null); }