DeleteFeatureResponse extends AbstractCommandResponse<DeleteFeatureResponse> implements
        ThingModifyCommandResponse<DeleteFeatureResponse> { @Deprecated public static DeleteFeatureResponse of(final String thingId, final String featureId, final DittoHeaders dittoHeaders) { return of(ThingId.of(thingId), featureId, dittoHeaders); } private  DeleteFeatureResponse(final ThingId thingId, final String featureId,
            final DittoHeaders dittoHeaders); @Deprecated static DeleteFeatureResponse of(final String thingId, final String featureId,
            final DittoHeaders dittoHeaders); static DeleteFeatureResponse of(final ThingId thingId, final String featureId,
            final DittoHeaders dittoHeaders); static DeleteFeatureResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders); static DeleteFeatureResponse fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override ThingId getThingEntityId(); String getFeatureId(); @Override JsonPointer getResourcePath(); @Override DeleteFeatureResponse 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 DeleteFeatureResponse underTest = DeleteFeatureResponse.of(TestConstants.Thing.THING_ID, TestConstants.Feature.FLUX_CAPACITOR_ID, TestConstants.EMPTY_DITTO_HEADERS); final JsonObject actualJsonUpdated = underTest.toJson(FieldType.regularOrSpecial()); assertThat(actualJsonUpdated).isEqualTo(KNOWN_JSON); }