@Test
public void featureDefinitionDeletedToAdaptable() {

    final JsonPointer path = JsonPointer.of("/features/" + TestConstants.FEATURE_ID + "/definition");
    final Adaptable expected = Adaptable.newBuilder(topicPathDeleted())
            .withPayload(Payload.newBuilder(path)
                    .withRevision(TestConstants.REVISION)
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final FeatureDefinitionDeleted featureDefinitionDeleted = FeatureDefinitionDeleted.of(TestConstants.THING_ID,
            TestConstants.FEATURE_ID, TestConstants.REVISION,
            setChannelHeader(TestConstants.HEADERS_V_2_NO_CONTENT_TYPE));
    final Adaptable actual = underTest.toAdaptable(featureDefinitionDeleted, channel);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}