test_class.declarator: KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(PolicyCommand.JsonFields.TYPE, CreatePolicy.TYPE)
              .set(CreatePolicy.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(PolicyCommand.JsonFields.TYPE, CreatePolicy.TYPE)
              .set(CreatePolicy.JSON_POLICY, TestConstants.Policy.POLICY.toJson(FieldType.regularOrSpecial()))
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON
test_class.file: signals/commands/policies/src/test/java/org/eclipse/ditto/signals/commands/policies/modify/CreatePolicyTest.java
test_class.identifier: CreatePolicyTest
test_case.body: @Test(expected = NullPointerException.class)
      public void tryToCreateInstanceWithNullPolicy() {
          CreatePolicy.of(null, TestConstants.EMPTY_DITTO_HEADERS);
      }
test_case.class_method_signature: CreatePolicyTest.tryToCreateInstanceWithNullPolicy()
test_case.full_signature: @Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullPolicy()
test_case.identifier: tryToCreateInstanceWithNullPolicy
test_case.invocations: of
test_case.modifiers: @Test(expected = NullPointerException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tryToCreateInstanceWithNullPolicy()
focal_class.declarator: NAME = "createPolicy"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "createPolicy";
focal_class.type: String
focal_class.var_name: NAME
focal_class.declarator: TYPE = TYPE_PREFIX + NAME
focal_class.modifier: public static final
focal_class.original_string: public static final String TYPE = TYPE_PREFIX + NAME;
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: JSON_POLICY =
              JsonFactory.newJsonObjectFieldDefinition("policy", FieldType.REGULAR, JsonSchemaVersion.V_2)
focal_class.modifier: static final
focal_class.original_string: static final JsonFieldDefinition<JsonObject> JSON_POLICY =
              JsonFactory.newJsonObjectFieldDefinition("policy", FieldType.REGULAR, JsonSchemaVersion.V_2);
focal_class.type: JsonFieldDefinition<JsonObject>
focal_class.var_name: JSON_POLICY
focal_class.declarator: policy
focal_class.modifier: private final
focal_class.original_string: private final Policy policy;
focal_class.type: Policy
focal_class.var_name: policy
focal_class.file: signals/commands/policies/src/main/java/org/eclipse/ditto/signals/commands/policies/modify/CreatePolicy.java
focal_class.identifier: CreatePolicy
focal_class.interfaces: implements PolicyModifyCommand<CreatePolicy>
focal_class.class_method_signature: CreatePolicy.CreatePolicy(final Policy policy, final DittoHeaders dittoHeaders)
focal_class.full_signature: private  CreatePolicy(final Policy policy, final DittoHeaders dittoHeaders)
focal_class.identifier: CreatePolicy
focal_class.modifiers: private
focal_class.parameters: (final Policy policy, final DittoHeaders dittoHeaders)
focal_class.signature:  CreatePolicy(final Policy policy, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreatePolicy.of(final Policy policy, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CreatePolicy of(final Policy policy, final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final Policy policy, final DittoHeaders dittoHeaders)
focal_class.return: CreatePolicy
focal_class.signature: CreatePolicy of(final Policy policy, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreatePolicy.fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CreatePolicy 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: CreatePolicy
focal_class.signature: CreatePolicy fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreatePolicy.fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static CreatePolicy 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: CreatePolicy
focal_class.signature: CreatePolicy fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreatePolicy.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: CreatePolicy.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: CreatePolicy.getEntity(final JsonSchemaVersion schemaVersion)
focal_class.full_signature: @Override public Optional<JsonValue> getEntity(final JsonSchemaVersion schemaVersion)
focal_class.identifier: getEntity
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonSchemaVersion schemaVersion)
focal_class.return: Optional<JsonValue>
focal_class.signature: Optional<JsonValue> getEntity(final JsonSchemaVersion schemaVersion)
focal_class.class_method_signature: CreatePolicy.getResourcePath()
focal_class.full_signature: @Override public JsonPointer getResourcePath()
focal_class.identifier: getResourcePath
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: JsonPointer
focal_class.signature: JsonPointer getResourcePath()
focal_class.class_method_signature: CreatePolicy.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: CreatePolicy.getCategory()
focal_class.full_signature: @Override public Category getCategory()
focal_class.identifier: getCategory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Category
focal_class.signature: Category getCategory()
focal_class.class_method_signature: CreatePolicy.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public CreatePolicy setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: CreatePolicy
focal_class.signature: CreatePolicy setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: CreatePolicy.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: CreatePolicy.equals(@Nullable final Object obj)
focal_class.full_signature: @SuppressWarnings("squid:MethodCyclomaticComplexity") @Override public boolean equals(@Nullable final Object obj)
focal_class.identifier: equals
focal_class.modifiers: @SuppressWarnings("squid:MethodCyclomaticComplexity") @Override public
focal_class.parameters: (@Nullable final Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable final Object obj)
focal_class.class_method_signature: CreatePolicy.hashCode()
focal_class.full_signature: @SuppressWarnings("squid:S109") @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @SuppressWarnings("squid:S109") @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: CreatePolicy.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 AbstractCommand<CreatePolicy>
focal_method.body: public static CreatePolicy of(final Policy policy, final DittoHeaders dittoHeaders) {
          return new CreatePolicy(policy, dittoHeaders);
      }
focal_method.class_method_signature: CreatePolicy.of(final Policy policy, final DittoHeaders dittoHeaders)
focal_method.full_signature: public static CreatePolicy of(final Policy policy, final DittoHeaders dittoHeaders)
focal_method.identifier: of
focal_method.modifiers: public static
focal_method.parameters: (final Policy policy, final DittoHeaders dittoHeaders)
focal_method.return: CreatePolicy
focal_method.signature: CreatePolicy of(final Policy policy, final DittoHeaders dittoHeaders)