DeletePolicyEntryResponse extends AbstractCommandResponse<DeletePolicyEntryResponse> implements PolicyModifyCommandResponse<DeletePolicyEntryResponse> { @Deprecated public static DeletePolicyEntryResponse of(final String policyId, final Label label, final DittoHeaders dittoHeaders) { return new DeletePolicyEntryResponse(PolicyId.of(policyId), label, HttpStatusCode.NO_CONTENT, dittoHeaders); } private  DeletePolicyEntryResponse(final PolicyId policyId,
            final Label label,
            final HttpStatusCode statusCode,
            final DittoHeaders dittoHeaders); @Deprecated static DeletePolicyEntryResponse of(final String policyId, final Label label,
            final DittoHeaders dittoHeaders); static DeletePolicyEntryResponse of(final PolicyId policyId, final Label label,
            final DittoHeaders dittoHeaders); static DeletePolicyEntryResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders); static DeletePolicyEntryResponse fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); @Override PolicyId getEntityId(); Label getLabel(); @Override JsonPointer getResourcePath(); @Override DeletePolicyEntryResponse 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 DeletePolicyEntryResponse underTest = DeletePolicyEntryResponse.of(TestConstants.Policy.POLICY_ID, TestConstants.Policy.LABEL, TestConstants.EMPTY_DITTO_HEADERS); final JsonObject actualJsonCreated = underTest.toJson(FieldType.regularOrSpecial()); assertThat(actualJsonCreated).isEqualTo(KNOWN_JSON); }