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