### Question:
ResetConnectionLogs extends AbstractCommand<ResetConnectionLogs> implements ConnectivityModifyCommand<ResetConnectionLogs> { public static ResetConnectionLogs of(final ConnectionId connectionId, final DittoHeaders dittoHeaders) { checkNotNull(connectionId, "Connection ID"); return new ResetConnectionLogs(connectionId, dittoHeaders); } private  ResetConnectionLogs(final ConnectionId connectionId, final DittoHeaders dittoHeaders); static ResetConnectionLogs of(final ConnectionId connectionId, final DittoHeaders dittoHeaders); static ResetConnectionLogs fromJson(final String jsonString, final DittoHeaders dittoHeaders); static ResetConnectionLogs fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override ConnectionId getConnectionEntityId(); @Override Category getCategory(); @Override ResetConnectionLogs setDittoHeaders(final DittoHeaders dittoHeaders); @Override JsonPointer getResourcePath(); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString(); static final String NAME; static final String TYPE; }### Answer:
@Test public void createInstanceWithNullConnectionId() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> ResetConnectionLogs.of(null, DittoHeaders.empty())) .withMessage("The %s must not be null!", "Connection ID") .withNoCause(); }
@Test public void toJsonReturnsExpected() { final JsonObject actual = ResetConnectionLogs.of(TestConstants.ID, DittoHeaders.empty()).toJson(); assertThat(actual).isEqualTo(KNOWN_JSON); }