test_class.file: signals/commands/messages/src/test/java/org/eclipse/ditto/signals/commands/messages/SendFeatureMessageResponseTest.java
test_class.identifier: SendFeatureMessageResponseTest
test_case.body: @Test
      public void validatesThatFeatureIDIsEqualInHeadersAndWrappingCommand() {
          final String featureId = "foo";
          final ThingId thingId = ThingId.generateRandom();
          final String subject = "bar";
          final MessageHeaders messageHeadersWithDifferentFeatureId =
                  MessageHeaders.newBuilder(MessageDirection.TO, thingId, subject)
                          .featureId("bumlux")
                          .build();
          final Message<Object> message = Message.newBuilder(messageHeadersWithDifferentFeatureId).build();
          final DittoHeaders dittoHeaders = DittoHeaders.empty();
          assertThatExceptionOfType(FeatureIdInvalidException.class)
                  .isThrownBy(() ->
                          SendFeatureMessageResponse.of(thingId, featureId, message, HttpStatusCode.MULTI_STATUS,
                                  dittoHeaders))
                  .withMessage("The Message contained feature ID <bumlux>. Expected was feature ID <foo>.");
      }
test_case.class_method_signature: SendFeatureMessageResponseTest.validatesThatFeatureIDIsEqualInHeadersAndWrappingCommand()
test_case.full_signature: @Test public void validatesThatFeatureIDIsEqualInHeadersAndWrappingCommand()
test_case.identifier: validatesThatFeatureIDIsEqualInHeadersAndWrappingCommand
test_case.invocations: generateRandom build featureId newBuilder build newBuilder empty withMessage isThrownBy assertThatExceptionOfType of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validatesThatFeatureIDIsEqualInHeadersAndWrappingCommand()
focal_class.declarator: NAME = "featureResponseMessage"
focal_class.modifier: public static final
focal_class.original_string: public static final String NAME = "featureResponseMessage";
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_FEATURE_ID =
              JsonFactory.newStringFieldDefinition("featureId", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2)
focal_class.modifier: private static final
focal_class.original_string: private static final JsonFieldDefinition<String> JSON_FEATURE_ID =
              JsonFactory.newStringFieldDefinition("featureId", FieldType.REGULAR, JsonSchemaVersion.V_1,
                      JsonSchemaVersion.V_2);
focal_class.type: JsonFieldDefinition<String>
focal_class.var_name: JSON_FEATURE_ID
focal_class.declarator: featureId
focal_class.modifier: private final
focal_class.original_string: private final String featureId;
focal_class.type: String
focal_class.var_name: featureId
focal_class.file: signals/commands/messages/src/main/java/org/eclipse/ditto/signals/commands/messages/SendFeatureMessageResponse.java
focal_class.identifier: SendFeatureMessageResponse
focal_class.interfaces: implements WithFeatureId
focal_class.class_method_signature: SendFeatureMessageResponse.SendFeatureMessageResponse(final ThingId thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: private  SendFeatureMessageResponse(final ThingId thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.identifier: SendFeatureMessageResponse
focal_class.modifiers: private
focal_class.parameters: (final ThingId thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.signature:  SendFeatureMessageResponse(final ThingId thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendFeatureMessageResponse.setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.full_signature: @Override public SendFeatureMessageResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.identifier: setDittoHeaders
focal_class.modifiers: @Override public
focal_class.parameters: (final DittoHeaders dittoHeaders)
focal_class.return: SendFeatureMessageResponse
focal_class.signature: SendFeatureMessageResponse setDittoHeaders(final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendFeatureMessageResponse.of(final String thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: @Deprecated public static SendFeatureMessageResponse<T> of(final String thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (final String thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.return: SendFeatureMessageResponse<T>
focal_class.signature: SendFeatureMessageResponse<T> of(final String thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendFeatureMessageResponse.of(final ThingId thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SendFeatureMessageResponse<T> of(final ThingId thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final ThingId thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.return: SendFeatureMessageResponse<T>
focal_class.signature: SendFeatureMessageResponse<T> of(final ThingId thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendFeatureMessageResponse.fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SendFeatureMessageResponse<?> 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: SendFeatureMessageResponse<?>
focal_class.signature: SendFeatureMessageResponse<?> fromJson(final String jsonString, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendFeatureMessageResponse.fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.full_signature: public static SendFeatureMessageResponse<?> 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: SendFeatureMessageResponse<?>
focal_class.signature: SendFeatureMessageResponse<?> fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendFeatureMessageResponse.validateMessageFeatureId(final String expectedFeatureId, final Message<?> message,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: private static void validateMessageFeatureId(final String expectedFeatureId, final Message<?> message,
              final DittoHeaders dittoHeaders)
focal_class.identifier: validateMessageFeatureId
focal_class.modifiers: private static
focal_class.parameters: (final String expectedFeatureId, final Message<?> message,
              final DittoHeaders dittoHeaders)
focal_class.return: void
focal_class.signature: void validateMessageFeatureId(final String expectedFeatureId, final Message<?> message,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: SendFeatureMessageResponse.getFeatureId()
focal_class.full_signature: @Override public String getFeatureId()
focal_class.identifier: getFeatureId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFeatureId()
focal_class.class_method_signature: SendFeatureMessageResponse.appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> predicate)
focal_class.full_signature: @Override protected void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> predicate)
focal_class.identifier: appendPayload
focal_class.modifiers: @Override protected
focal_class.parameters: (final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> predicate)
focal_class.return: void
focal_class.signature: void appendPayload(final JsonObjectBuilder jsonObjectBuilder, final JsonSchemaVersion schemaVersion,
              final Predicate<JsonField> predicate)
focal_class.class_method_signature: SendFeatureMessageResponse.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: SendFeatureMessageResponse.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: SendFeatureMessageResponse.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: SendFeatureMessageResponse.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 AbstractMessageCommandResponse<T, SendFeatureMessageResponse<T>>
focal_method.body: @Deprecated
      public static <T> SendFeatureMessageResponse<T> of(final String thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders) {
  
          return of(ThingId.of(thingId), featureId, message, responseStatusCode, dittoHeaders);
      }
focal_method.class_method_signature: SendFeatureMessageResponse.of(final String thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_method.full_signature: @Deprecated public static SendFeatureMessageResponse<T> of(final String thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              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 String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)
focal_method.return: SendFeatureMessageResponse<T>
focal_method.signature: SendFeatureMessageResponse<T> of(final String thingId,
              final String featureId,
              final Message<T> message,
              final HttpStatusCode responseStatusCode,
              final DittoHeaders dittoHeaders)