@Test
public void thingModifyCommandResponseFromAdaptable() {

    final ModifyThingResponse modifyThingResponseCreated =
            ModifyThingResponse.created(TestConstants.THING, DITTO_HEADERS_V_2);
    final ModifyThingResponse modifyThingResponseModified =
            ModifyThingResponse.modified(TestConstants.THING_ID, DITTO_HEADERS_V_2);
    final TopicPath topicPath = TopicPath.newBuilder(THING_ID)
            .things()
            .twin()
            .commands()
            .modify()
            .build();
    final JsonPointer path = JsonPointer.empty();
    final ThingModifyCommandResponse actualCommandResponseCreated =
            (ThingModifyCommandResponse) underTest.fromAdaptable(Adaptable.newBuilder(topicPath)
                    .withPayload(Payload.newBuilder(path)
                            .withStatus(HttpStatusCode.CREATED)
                            .withValue(TestConstants.THING.toJson(FieldType.notHidden()))
                            .build())
                    .withHeaders(TestConstants.HEADERS_V_2)
                    .build());
    assertWithExternalHeadersThat(actualCommandResponseCreated).isEqualTo(modifyThingResponseCreated);
    final ThingModifyCommandResponse actualCommandResponseModified =
            (ThingModifyCommandResponse) underTest.fromAdaptable(Adaptable.newBuilder(topicPath)
                    .withPayload(Payload.newBuilder(path)
                            .withStatus(HttpStatusCode.NO_CONTENT)
                            .build())
                    .withHeaders(TestConstants.HEADERS_V_2)
                    .build());
    assertWithExternalHeadersThat(actualCommandResponseModified).isEqualTo(modifyThingResponseModified);
}