test_class.declarator: KNOWN_JSON = JsonFactory.newObjectBuilder() //
              .set(SudoCommandResponse.JsonFields.TYPE, SudoRetrievePolicyResponse.TYPE) //
              .set(SudoCommandResponse.JsonFields.STATUS, HttpStatusCode.OK.toInt()) //
              .set(SudoCommandResponse.JsonFields.JSON_POLICY_ID, TestConstants.Policy.POLICY_ID.toString()) //
              .set(SudoRetrievePolicyResponse.JSON_POLICY,
                      TestConstants.Policy.POLICY.toJson(FieldType.regularOrSpecial())) //
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON = JsonFactory.newObjectBuilder() //
              .set(SudoCommandResponse.JsonFields.TYPE, SudoRetrievePolicyResponse.TYPE) //
              .set(SudoCommandResponse.JsonFields.STATUS, HttpStatusCode.OK.toInt()) //
              .set(SudoCommandResponse.JsonFields.JSON_POLICY_ID, TestConstants.Policy.POLICY_ID.toString()) //
              .set(SudoRetrievePolicyResponse.JSON_POLICY,
                      TestConstants.Policy.POLICY.toJson(FieldType.regularOrSpecial())) //
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON
test_class.declarator: EMPTY_DITTO_HEADERS = DittoHeaders.empty()
test_class.modifier: private static final
test_class.original_string: private static final DittoHeaders EMPTY_DITTO_HEADERS = DittoHeaders.empty();
test_class.type: DittoHeaders
test_class.var_name: EMPTY_DITTO_HEADERS
test_class.file: services/models/policies/src/test/java/org/eclipse/ditto/services/models/policies/commands/sudo/SudoRetrievePolicyResponseTest.java
test_class.identifier: SudoRetrievePolicyResponseTest
test_case.body: @Test(expected = NullPointerException.class)
      public void tryToCreateInstanceWithNullJsonObject() {
          SudoRetrievePolicyResponse.of(TestConstants.Policy.POLICY_ID, (JsonObject) null, EMPTY_DITTO_HEADERS);
      }
test_case.class_method_signature: SudoRetrievePolicyResponseTest.tryToCreateInstanceWithNullJsonObject()
test_case.full_signature: @Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullJsonObject()
test_case.identifier: tryToCreateInstanceWithNullJsonObject
test_case.invocations: of
test_case.modifiers: @Test(expected = NullPointerException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tryToCreateInstanceWithNullJsonObject()
focal_class.declarator: TYPE = TYPE_PREFIX + SudoRetrievePolicy.NAME
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = TYPE_PREFIX + SudoRetrievePolicy.NAME;
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: JSON_POLICY =
              JsonFactory.newJsonObjectFieldDefinition("payload/policy", FieldType.REGULAR, JsonSchemaVersion.V_2)
focal_class.modifier: static final
focal_class.original_string: static final JsonFieldDefinition<JsonObject> JSON_POLICY =
              JsonFactory.newJsonObjectFieldDefinition("payload/policy", FieldType.REGULAR, JsonSchemaVersion.V_2);
focal_class.type: JsonFieldDefinition<JsonObject>
focal_class.var_name: JSON_POLICY
focal_class.declarator: policyId
focal_class.modifier: private final
focal_class.original_string: private final PolicyId policyId;
focal_class.type: PolicyId
focal_class.var_name: policyId
focal_class.declarator: policy
focal_class.modifier: private final
focal_class.original_string: private final JsonObject policy;
focal_class.type: JsonObject
focal_class.var_name: policy
focal_class.file: services/models/policies/src/main/java/org/eclipse/ditto/services/models/policies/commands/sudo/SudoRetrievePolicyResponse.java
focal_class.identifier: SudoRetrievePolicyResponse
focal_class.interfaces: implements SudoCommandResponse<SudoRetrievePolicyResponse>
focal_class.class_method_signature: SudoRetrievePolicyResponse.SudoRetrievePolicyResponse(final PolicyId policyId,
              final HttpStatusCode statusCode,
              final JsonObject policy,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: private  SudoRetrievePolicyResponse(final PolicyId policyId,
              final HttpStatusCode statusCode,
              final JsonObject policy,
              final DittoHeaders dittoHeaders)
focal_class.identifier: SudoRetrievePolicyResponse
focal_class.modifiers: private
focal_class.parameters: (final PolicyId policyId,
              final HttpStatusCode statusCode,
              final JsonObject policy,
              final DittoHeaders dittoHeaders)
focal_class.signature:  SudoRetrievePolicyResponse(final PolicyId policyId,
              final HttpStatusCode statusCode,
              final JsonObject policy,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrievePolicyResponse.of(final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrievePolicyResponse of(final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrievePolicyResponse
focal_class.signature: SudoRetrievePolicyResponse of(final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrievePolicyResponse.of(final PolicyId policyId, final JsonObject policy,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrievePolicyResponse of(final PolicyId policyId, final JsonObject policy,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final PolicyId policyId, final JsonObject policy,
              final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrievePolicyResponse
focal_class.signature: SudoRetrievePolicyResponse of(final PolicyId policyId, final JsonObject policy,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrievePolicyResponse.fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrievePolicyResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final String jsonString, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrievePolicyResponse
focal_class.signature: SudoRetrievePolicyResponse fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrievePolicyResponse.fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SudoRetrievePolicyResponse fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrievePolicyResponse
focal_class.signature: SudoRetrievePolicyResponse fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrievePolicyResponse.getEntityId()
focal_class.full_signature: @Override public PolicyId getEntityId()
focal_class.identifier: getEntityId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: PolicyId
focal_class.signature: PolicyId getEntityId()
focal_class.class_method_signature: SudoRetrievePolicyResponse.getPolicy()
focal_class.full_signature: public Policy getPolicy()
focal_class.identifier: getPolicy
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Policy
focal_class.signature: Policy getPolicy()
focal_class.class_method_signature: SudoRetrievePolicyResponse.getEntity(final JsonSchemaVersion schemaVersion)
focal_class.full_signature: @Override public JsonValue getEntity(final JsonSchemaVersion schemaVersion)
focal_class.identifier: getEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonSchemaVersion schemaVersion)
focal_class.return: JsonValue
focal_class.signature: JsonValue getEntity(final JsonSchemaVersion schemaVersion)
focal_class.class_method_signature: SudoRetrievePolicyResponse.setEntity(final JsonValue entity)
focal_class.full_signature: @Override public SudoRetrievePolicyResponse setEntity(final JsonValue entity)
focal_class.identifier: setEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonValue entity)
focal_class.return: SudoRetrievePolicyResponse
focal_class.signature: SudoRetrievePolicyResponse setEntity(final JsonValue entity)
focal_class.class_method_signature: SudoRetrievePolicyResponse.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public SudoRetrievePolicyResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: SudoRetrievePolicyResponse
focal_class.signature: SudoRetrievePolicyResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SudoRetrievePolicyResponse.appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.full_signature: @Override protected void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.identifier: appendPayload
focal_class.modifiers: @Override protected
focal_class.parameters: (final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.return: void
focal_class.signature: void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> thePredicate)
focal_class.class_method_signature: SudoRetrievePolicyResponse.canEqual(@Nullable final Object other)
focal_class.full_signature: @Override protected boolean canEqual(@Nullable final Object other)
focal_class.identifier: canEqual
focal_class.modifiers: @Override protected
focal_class.parameters: (@Nullable final Object other)
focal_class.return: boolean
focal_class.signature: boolean canEqual(@Nullable final Object other)
focal_class.class_method_signature: SudoRetrievePolicyResponse.equals(@Nullable final Object o)
focal_class.full_signature: @Override public boolean equals(@Nullable final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object o)
focal_class.class_method_signature: SudoRetrievePolicyResponse.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: SudoRetrievePolicyResponse.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends AbstractCommandResponse<SudoRetrievePolicyResponse>
focal_method.body: public static SudoRetrievePolicyResponse of(final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders) {
          return new SudoRetrievePolicyResponse(policyId, HttpStatusCode.OK, //
                  checkNotNull(policy, "Policy") //
                          .toJson(dittoHeaders.getSchemaVersion().orElse(policy.getLatestSchemaVersion()),
                                  FieldType.regularOrSpecial()),
                  dittoHeaders);
      }
focal_method.class_method_signature: SudoRetrievePolicyResponse.of(final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders)
focal_method.full_signature: public static SudoRetrievePolicyResponse of(final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders)
focal_method.identifier: of
focal_method.invocations: toJson checkNotNull orElse getSchemaVersion getLatestSchemaVersion regularOrSpecial
focal_method.modifiers: public static
focal_method.parameters: (final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders)
focal_method.return: SudoRetrievePolicyResponse
focal_method.signature: SudoRetrievePolicyResponse of(final PolicyId policyId, final Policy policy,
              final DittoHeaders dittoHeaders)