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