@Test
public void thingCreatedFromAdaptable() {

    final Instant now = Instant.now();
    final ThingCreated expected =
            ThingCreated.of(TestConstants.THING, TestConstants.REVISION, now,
                    setChannelHeader(TestConstants.DITTO_HEADERS_V_2));
    final JsonPointer path = JsonPointer.empty();
    final Adaptable adaptable = Adaptable.newBuilder(topicPathCreated())
            .withPayload(Payload.newBuilder(path)
                    .withValue(TestConstants.THING.toJson(FieldType.notHidden()))
                    .withRevision(TestConstants.REVISION)
                    .withTimestamp(now)
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final ThingEvent<?> actual = underTest.fromAdaptable(adaptable);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}