@Test
public void attributeCreatedFromAdaptable() {

    final AttributeCreated expected = AttributeCreated.of(TestConstants.THING_ID, TestConstants.ATTRIBUTE_POINTER,
            TestConstants.ATTRIBUTE_VALUE, TestConstants.REVISION,
            setChannelHeader(TestConstants.DITTO_HEADERS_V_2));
    final JsonPointer path = JsonPointer.of("/attributes" + TestConstants.ATTRIBUTE_POINTER);
    final Adaptable adaptable = Adaptable.newBuilder(topicPathCreated())
            .withPayload(Payload.newBuilder(path)
                    .withValue(TestConstants.ATTRIBUTE_VALUE)
                    .withRevision(TestConstants.REVISION)
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final ThingEvent<?> actual = underTest.fromAdaptable(adaptable);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}