@Test
public void acknowledgementsContaining1FromAdaptable() {

    final Adaptable adaptable = Adaptable.newBuilder(topicPathMyCustomAck)
            .withHeaders(KNOWN_HEADERS)
            .withPayload(Payload.newBuilder(JsonPointer.empty())
                    .withStatus(HttpStatusCode.CREATED)
                    .withValue(JsonObject.newBuilder()
                            .set(KNOWN_CUSTOM_LABEL, JsonObject.newBuilder()
                                    .set("status", KNOWN_STATUS.toInt())
                                    .set("payload", KNOWN_PAYLOAD)
                                    .build())
                            .build())
                    .build())
            .build();
    final Acknowledgements expected = ThingAcknowledgementsFactory.newAcknowledgements(
            Collections.singletonList(KNOWN_ACK_SUCCESS.setDittoHeaders(DittoHeaders.empty())), KNOWN_HEADERS);
    final Acknowledgements actual = underTest.fromAdaptable(adaptable);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}