@Test
public void attributeModifiedToAdaptable() {

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