@Test
public void attributeDeletedToAdaptable() {

    final JsonPointer path = JsonPointer.of("/attributes" + TestConstants.ATTRIBUTE_POINTER);
    final Adaptable expected = Adaptable.newBuilder(topicPathDeleted())
            .withPayload(Payload.newBuilder(path)
                    .withRevision(TestConstants.REVISION)
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final AttributeDeleted attributeDeleted = AttributeDeleted.of(TestConstants.THING_ID,
            TestConstants.ATTRIBUTE_POINTER, TestConstants.REVISION,
            setChannelHeader(TestConstants.HEADERS_V_2_NO_CONTENT_TYPE));
    final Adaptable actual = underTest.toAdaptable(attributeDeleted, channel);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}