DeleteFeaturesResponse extends AbstractCommandResponse<DeleteFeaturesResponse> implements
        ThingModifyCommandResponse<DeleteFeaturesResponse> { @Deprecated public static DeleteFeaturesResponse of(final String thingId, final DittoHeaders dittoHeaders) { return of(ThingId.of(thingId), dittoHeaders); } private  DeleteFeaturesResponse(final ThingId thingId, final DittoHeaders dittoHeaders); @Deprecated static DeleteFeaturesResponse of(final String thingId, final DittoHeaders dittoHeaders); static DeleteFeaturesResponse of(final ThingId thingId, final DittoHeaders dittoHeaders); static DeleteFeaturesResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders); static DeleteFeaturesResponse fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override ThingId getThingEntityId(); @Override JsonPointer getResourcePath(); @Override DeleteFeaturesResponse setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override String toString(); static final String TYPE; }
@Test public void toJsonReturnsExpected() { final DeleteFeaturesResponse underTest = DeleteFeaturesResponse.of(TestConstants.Thing.THING_ID, DittoHeaders.empty()); final JsonObject actualJsonUpdated = underTest.toJson(FieldType.regularOrSpecial()); assertThat(actualJsonUpdated).isEqualTo(KNOWN_JSON); }