test_class.declarator: THING_ID = ThingId.of("test.ns", "theThingId")
test_class.modifier: private static final
test_class.original_string: private static final ThingId THING_ID = ThingId.of("test.ns", "theThingId");
test_class.type: ThingId
test_class.var_name: THING_ID
test_class.declarator: SUBJECT = "theSubject"
test_class.modifier: private static final
test_class.original_string: private static final String SUBJECT = "theSubject";
test_class.type: String
test_class.var_name: SUBJECT
test_class.declarator: CONTENT_TYPE = "application/xml"
test_class.modifier: private static final
test_class.original_string: private static final String CONTENT_TYPE = "application/xml";
test_class.type: String
test_class.var_name: CONTENT_TYPE
test_class.declarator: CORRELATION_ID = UUID.randomUUID().toString()
test_class.modifier: private static final
test_class.original_string: private static final String CORRELATION_ID = UUID.randomUUID().toString();
test_class.type: String
test_class.var_name: CORRELATION_ID
test_class.declarator: DITTO_HEADERS = DittoHeaders.newBuilder().correlationId(CORRELATION_ID).build()
test_class.modifier: private static final
test_class.original_string: private static final DittoHeaders DITTO_HEADERS = DittoHeaders.newBuilder().correlationId(CORRELATION_ID).build();
test_class.type: DittoHeaders
test_class.var_name: DITTO_HEADERS
test_class.declarator: KNOWN_RAW_PAYLOAD_STR = "<some>42</some>"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_RAW_PAYLOAD_STR = "<some>42</some>";
test_class.type: String
test_class.var_name: KNOWN_RAW_PAYLOAD_STR
test_class.declarator: KNOWN_RAW_PAYLOAD_BYTES = KNOWN_RAW_PAYLOAD_STR.getBytes(StandardCharsets.UTF_8)
test_class.modifier: private static final
test_class.original_string: private static final byte[] KNOWN_RAW_PAYLOAD_BYTES = KNOWN_RAW_PAYLOAD_STR.getBytes(StandardCharsets.UTF_8);
test_class.type: byte[]
test_class.var_name: KNOWN_RAW_PAYLOAD_BYTES
test_class.declarator: MESSAGE = MessagesModelFactory.newMessageBuilder(
              MessageHeaders.newBuilder(MessageDirection.TO, THING_ID, SUBJECT)
                      .contentType(CONTENT_TYPE)
                      .build())
              .payload(ByteBuffer.wrap(KNOWN_RAW_PAYLOAD_BYTES))
              .rawPayload(ByteBuffer.wrap(KNOWN_RAW_PAYLOAD_BYTES))
              .build()
test_class.modifier: private static final
test_class.original_string: private static final Message<?> MESSAGE = MessagesModelFactory.newMessageBuilder(
              MessageHeaders.newBuilder(MessageDirection.TO, THING_ID, SUBJECT)
                      .contentType(CONTENT_TYPE)
                      .build())
              .payload(ByteBuffer.wrap(KNOWN_RAW_PAYLOAD_BYTES))
              .rawPayload(ByteBuffer.wrap(KNOWN_RAW_PAYLOAD_BYTES))
              .build();
test_class.type: Message<?>
test_class.var_name: MESSAGE
test_class.declarator: MESSAGE_EMPTY_PAYLOAD = MessagesModelFactory.newMessageBuilder(
              MessageHeaders.newBuilder(MessageDirection.TO, THING_ID, SUBJECT)
                      .contentType(CONTENT_TYPE)
                      .build())
              .build()
test_class.modifier: private static final
test_class.original_string: private static final Message<?> MESSAGE_EMPTY_PAYLOAD = MessagesModelFactory.newMessageBuilder(
              MessageHeaders.newBuilder(MessageDirection.TO, THING_ID, SUBJECT)
                      .contentType(CONTENT_TYPE)
                      .build())
              .build();
test_class.type: Message<?>
test_class.var_name: MESSAGE_EMPTY_PAYLOAD
test_class.declarator: KNOWN_MESSAGE_AS_JSON = JsonFactory.newObjectBuilder()
              .set(MessageCommand.JsonFields.JSON_MESSAGE_HEADERS, MESSAGE.getHeaders().toJson())
              .set(MessageCommand.JsonFields.JSON_MESSAGE_PAYLOAD, JsonFactory.newValue(new String(Base64.getEncoder()
                      .encode(KNOWN_RAW_PAYLOAD_BYTES), StandardCharsets.UTF_8))
              )
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_MESSAGE_AS_JSON = JsonFactory.newObjectBuilder()
              .set(MessageCommand.JsonFields.JSON_MESSAGE_HEADERS, MESSAGE.getHeaders().toJson())
              .set(MessageCommand.JsonFields.JSON_MESSAGE_PAYLOAD, JsonFactory.newValue(new String(Base64.getEncoder()
                      .encode(KNOWN_RAW_PAYLOAD_BYTES), StandardCharsets.UTF_8))
              )
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_MESSAGE_AS_JSON
test_class.declarator: KNOWN_EMPTY_PAYLOAD_MESSAGE_AS_JSON = JsonFactory.newObjectBuilder()
              .set(MessageCommand.JsonFields.JSON_MESSAGE_HEADERS, MESSAGE.getHeaders().toJson())
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_EMPTY_PAYLOAD_MESSAGE_AS_JSON = JsonFactory.newObjectBuilder()
              .set(MessageCommand.JsonFields.JSON_MESSAGE_HEADERS, MESSAGE.getHeaders().toJson())
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_EMPTY_PAYLOAD_MESSAGE_AS_JSON
test_class.declarator: KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(Command.JsonFields.TYPE, SendThingMessage.TYPE)
              .set(MessageCommand.JsonFields.JSON_THING_ID, THING_ID.toString())
              .set(MessageCommand.JsonFields.JSON_MESSAGE, KNOWN_MESSAGE_AS_JSON)
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON = JsonFactory.newObjectBuilder()
              .set(Command.JsonFields.TYPE, SendThingMessage.TYPE)
              .set(MessageCommand.JsonFields.JSON_THING_ID, THING_ID.toString())
              .set(MessageCommand.JsonFields.JSON_MESSAGE, KNOWN_MESSAGE_AS_JSON)
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON
test_class.declarator: KNOWN_JSON_WITH_EMPTY_PAYLOAD = JsonFactory.newObjectBuilder()
              .set(Command.JsonFields.TYPE, SendThingMessage.TYPE)
              .set(MessageCommand.JsonFields.JSON_THING_ID, THING_ID.toString())
              .set(MessageCommand.JsonFields.JSON_MESSAGE, KNOWN_EMPTY_PAYLOAD_MESSAGE_AS_JSON)
              .build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_JSON_WITH_EMPTY_PAYLOAD = JsonFactory.newObjectBuilder()
              .set(Command.JsonFields.TYPE, SendThingMessage.TYPE)
              .set(MessageCommand.JsonFields.JSON_THING_ID, THING_ID.toString())
              .set(MessageCommand.JsonFields.JSON_MESSAGE, KNOWN_EMPTY_PAYLOAD_MESSAGE_AS_JSON)
              .build();
test_class.type: JsonObject
test_class.var_name: KNOWN_JSON_WITH_EMPTY_PAYLOAD
test_class.file: signals/commands/messages/src/test/java/org/eclipse/ditto/signals/commands/messages/SendThingMessageTest.java
test_class.identifier: SendThingMessageTest
test_case.body: @Test
      public void toJsonWithEmptyPayloadReturnsExpected() {
          final SendThingMessage<?> underTest =
                  SendThingMessage.of(THING_ID, MESSAGE_EMPTY_PAYLOAD, TestConstants.EMPTY_DITTO_HEADERS);
          final JsonObject actualJson = underTest.toJson(FieldType.regularOrSpecial());
          assertThat(actualJson).isEqualTo(KNOWN_JSON_WITH_EMPTY_PAYLOAD);
      }
test_case.class_method_signature: SendThingMessageTest.toJsonWithEmptyPayloadReturnsExpected()
test_case.full_signature: @Test public void toJsonWithEmptyPayloadReturnsExpected()
test_case.identifier: toJsonWithEmptyPayloadReturnsExpected
test_case.invocations: of toJson regularOrSpecial isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toJsonWithEmptyPayloadReturnsExpected()
focal_class.declarator: NAME = "thingMessage"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "thingMessage";
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.file: signals/commands/messages/src/main/java/org/eclipse/ditto/signals/commands/messages/SendThingMessage.java
focal_class.identifier: SendThingMessage
focal_class.class_method_signature: SendThingMessage.SendThingMessage(final ThingId thingId, final Message<T> message, final DittoHeaders dittoHeaders)
focal_class.full_signature: private  SendThingMessage(final ThingId thingId, final Message<T> message, final DittoHeaders dittoHeaders)
focal_class.identifier: SendThingMessage
focal_class.modifiers: private
focal_class.parameters: (final ThingId thingId, final Message<T> message, final DittoHeaders dittoHeaders)
focal_class.signature:  SendThingMessage(final ThingId thingId, final Message<T> message, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendThingMessage.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public SendThingMessage setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: SendThingMessage
focal_class.signature: SendThingMessage setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendThingMessage.of(final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: @Deprecated public static SendThingMessage<T> of(final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_class.return: SendThingMessage<T>
focal_class.signature: SendThingMessage<T> of(final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendThingMessage.of(final ThingId thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SendThingMessage<T> of(final ThingId thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final ThingId thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_class.return: SendThingMessage<T>
focal_class.signature: SendThingMessage<T> of(final ThingId thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendThingMessage.fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SendThingMessage<?> 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: SendThingMessage<?>
focal_class.signature: SendThingMessage<?> fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendThingMessage.fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SendThingMessage<?> 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: SendThingMessage<?>
focal_class.signature: SendThingMessage<?> fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendThingMessage.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: SendThingMessage.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 AbstractMessageCommand<T, SendThingMessage<T>>
focal_method.body: @Deprecated
      public static <T> SendThingMessage<T> of(final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders) {
          return of(ThingId.of(thingId), message, dittoHeaders);
      }
focal_method.class_method_signature: SendThingMessage.of(final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_method.full_signature: @Deprecated public static SendThingMessage<T> of(final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_method.identifier: of
focal_method.invocations: of of
focal_method.modifiers: @Deprecated public static
focal_method.parameters: (final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)
focal_method.return: SendThingMessage<T>
focal_method.signature: SendThingMessage<T> of(final String thingId, final Message<T> message,
              final DittoHeaders dittoHeaders)