@Test
public void acknowledgementFromAdaptable() {

    final DittoHeaders dittoHeaders = DittoHeaders.newBuilder().randomCorrelationId().build();
    final JsonValue customAckPayload = JsonValue.of("Custom Ack payload");
    final HttpStatusCode status = HttpStatusCode.CREATED;
    final Adaptable adaptable = Adaptable.newBuilder(topicPathMyCustomAck)
            .withHeaders(dittoHeaders)
            .withPayload(Payload.newBuilder(JsonPointer.empty())
                    .withValue(customAckPayload)
                    .withStatus(status)
                    .build())
            .build();
    final Acknowledgement expected = ThingAcknowledgementFactory.newAcknowledgement(KNOWN_CUSTOM_LABEL,
            TestConstants.THING_ID,
            status,
            dittoHeaders,
            customAckPayload);
    final Acknowledgement actual = underTest.fromAdaptable(adaptable);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}