test_class.declarator: KNOWN_LABEL = DittoAcknowledgementLabel.TWIN_PERSISTED
test_class.modifier: private static final
test_class.original_string: private static final AcknowledgementLabel KNOWN_LABEL = DittoAcknowledgementLabel.TWIN_PERSISTED;
test_class.type: AcknowledgementLabel
test_class.var_name: KNOWN_LABEL
test_class.declarator: KNOWN_THING_ID = ThingId.generateRandom()
test_class.modifier: private static final
test_class.original_string: private static final ThingId KNOWN_THING_ID = ThingId.generateRandom();
test_class.type: ThingId
test_class.var_name: KNOWN_THING_ID
test_class.declarator: KNOWN_STATUS_CODE = HttpStatusCode.NOT_FOUND
test_class.modifier: private static final
test_class.original_string: private static final HttpStatusCode KNOWN_STATUS_CODE = HttpStatusCode.NOT_FOUND;
test_class.type: HttpStatusCode
test_class.var_name: KNOWN_STATUS_CODE
test_class.declarator: KNOWN_PAYLOAD = JsonObject.newBuilder().set("foo", "bar").build()
test_class.modifier: private static final
test_class.original_string: private static final JsonObject KNOWN_PAYLOAD = JsonObject.newBuilder().set("foo", "bar").build();
test_class.type: JsonObject
test_class.var_name: KNOWN_PAYLOAD
test_class.declarator: testName = new TestName()
test_class.modifier: @Rule
      public final
test_class.original_string: @Rule
      public final TestName testName = new TestName();
test_class.type: TestName
test_class.var_name: testName
test_class.declarator: dittoHeaders
test_class.modifier: private
test_class.original_string: private DittoHeaders dittoHeaders;
test_class.type: DittoHeaders
test_class.var_name: dittoHeaders
test_class.file: signals/acks/things/src/test/java/org/eclipse/ditto/signals/acks/things/ThingAcknowledgementFactoryTest.java
test_class.identifier: ThingAcknowledgementFactoryTest
test_case.body: @Test
      public void newAcknowledgementReturnsExpected() {
          final Acknowledgement acknowledgement =
                  ThingAcknowledgementFactory.newAcknowledgement(KNOWN_LABEL, KNOWN_THING_ID, KNOWN_STATUS_CODE,
                          dittoHeaders, KNOWN_PAYLOAD);
  
          try (final AutoCloseableSoftAssertions softly = new AutoCloseableSoftAssertions()) {
              softly.assertThat((CharSequence) acknowledgement.getLabel())
                      .as("same label")
                      .isEqualTo(KNOWN_LABEL);
              softly.assertThat((CharSequence) acknowledgement.getEntityId())
                      .as("same entity ID")
                      .isEqualTo(KNOWN_THING_ID);
              softly.assertThat(acknowledgement.getType())
                      .as("same type")
                      .isEqualTo(Acknowledgement.getType(KNOWN_THING_ID.getEntityType()));
              softly.assertThat(acknowledgement.getStatusCode())
                      .as("same status code")
                      .isEqualTo(KNOWN_STATUS_CODE);
              softly.assertThat(acknowledgement.getDittoHeaders())
                      .as("same DittoHeaders")
                      .isEqualTo(dittoHeaders);
              softly.assertThat(acknowledgement.getEntity())
                      .as("same entity")
                      .contains(KNOWN_PAYLOAD);
          }
      }
test_case.class_method_signature: ThingAcknowledgementFactoryTest.newAcknowledgementReturnsExpected()
test_case.full_signature: @Test public void newAcknowledgementReturnsExpected()
test_case.identifier: newAcknowledgementReturnsExpected
test_case.invocations: newAcknowledgement isEqualTo as assertThat getLabel isEqualTo as assertThat getEntityId isEqualTo as assertThat getType getType getEntityType isEqualTo as assertThat getStatusCode isEqualTo as assertThat getDittoHeaders contains as assertThat getEntity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void newAcknowledgementReturnsExpected()
focal_class.file: signals/acks/things/src/main/java/org/eclipse/ditto/signals/acks/things/ThingAcknowledgementFactory.java
focal_class.identifier: ThingAcknowledgementFactory
focal_class.class_method_signature: ThingAcknowledgementFactory.ThingAcknowledgementFactory()
focal_class.full_signature: private  ThingAcknowledgementFactory()
focal_class.identifier: ThingAcknowledgementFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ThingAcknowledgementFactory()
focal_class.class_method_signature: ThingAcknowledgementFactory.newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload)
focal_class.full_signature: public static Acknowledgement newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload)
focal_class.identifier: newAcknowledgement
focal_class.modifiers: public static
focal_class.parameters: (final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload)
focal_class.return: Acknowledgement
focal_class.signature: Acknowledgement newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload)
focal_class.class_method_signature: ThingAcknowledgementFactory.newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders)
focal_class.full_signature: public static Acknowledgement newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders)
focal_class.identifier: newAcknowledgement
focal_class.modifiers: public static
focal_class.parameters: (final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders)
focal_class.return: Acknowledgement
focal_class.signature: Acknowledgement newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders)
focal_class.class_method_signature: ThingAcknowledgementFactory.getJsonParser()
focal_class.full_signature: public static JsonParser getJsonParser()
focal_class.identifier: getJsonParser
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: JsonParser
focal_class.signature: JsonParser getJsonParser()
focal_class.class_method_signature: ThingAcknowledgementFactory.fromJson(final JsonObject jsonObject)
focal_class.full_signature: public static Acknowledgement fromJson(final JsonObject jsonObject)
focal_class.identifier: fromJson
focal_class.modifiers: public static
focal_class.parameters: (final JsonObject jsonObject)
focal_class.return: Acknowledgement
focal_class.signature: Acknowledgement fromJson(final JsonObject jsonObject)
focal_method.body: public static Acknowledgement newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload) {
  
          return Acknowledgement.of(label, thingId, statusCode, dittoHeaders, payload);
      }
focal_method.class_method_signature: ThingAcknowledgementFactory.newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload)
focal_method.full_signature: public static Acknowledgement newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload)
focal_method.identifier: newAcknowledgement
focal_method.invocations: of
focal_method.modifiers: public static
focal_method.parameters: (final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload)
focal_method.return: Acknowledgement
focal_method.signature: Acknowledgement newAcknowledgement(final AcknowledgementLabel label,
              final ThingId thingId,
              final HttpStatusCode statusCode,
              final DittoHeaders dittoHeaders,
              @Nullable final JsonValue payload)