@Test
public void acknowledgementsContaining1ToAdaptable() {

    final Acknowledgements acknowledgements = ThingAcknowledgementsFactory.newAcknowledgements(
            Collections.singletonList(KNOWN_ACK_2_ERROR), KNOWN_HEADERS);
    final Adaptable expected = Adaptable.newBuilder(topicPathMyCustomAck)
            .withPayload(Payload.newBuilder(JsonPointer.empty())
                    .withStatus(KNOWN_STATUS_2)
                    .withValue(JsonObject.newBuilder()
                            .set(KNOWN_CUSTOM_LABEL_2, JsonObject.newBuilder()
                                    .set("status", KNOWN_STATUS_2.toInt())
                                    .set("headers", KNOWN_HEADERS_2.toJson())
                                    .build())
                            .build())
                    .build())
            .build();
    final Adaptable actual = underTest.toAdaptable(acknowledgements);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}