@Test
public void modifyFeatureFromAdaptable() {

    final ModifyFeature expected =
            ModifyFeature.of(TestConstants.THING_ID, TestConstants.FEATURE, TestConstants.DITTO_HEADERS_V_2);
    final TopicPath topicPath = topicPath(TopicPath.Action.MODIFY);
    final JsonPointer path = JsonPointer.of("/features/" + TestConstants.FEATURE_ID);
    final Adaptable adaptable = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path)
                    .withValue(TestConstants.FEATURE.toJson(FieldType.regularOrSpecial()))
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final ThingModifyCommand<?> actual = underTest.fromAdaptable(adaptable);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}