@Test
public void modifyAttributeResponseToAdaptable() {

    final TopicPath topicPath = topicPath(TopicPath.Action.MODIFY);
    final JsonPointer path = JsonPointer.of("/attributes" + TestConstants.ATTRIBUTE_POINTER);
    final Adaptable expectedCreated = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path)
                    .withStatus(HttpStatusCode.CREATED)
                    .withValue(TestConstants.ATTRIBUTE_VALUE)
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final ModifyAttributeResponse modifyAttributeResponseCreated = ModifyAttributeResponse
            .created(TestConstants.THING_ID, TestConstants.ATTRIBUTE_POINTER, TestConstants.ATTRIBUTE_VALUE,
                    TestConstants.DITTO_HEADERS_V_2);
    final Adaptable actualCreated = underTest.toAdaptable(modifyAttributeResponseCreated, channel);
    assertWithExternalHeadersThat(actualCreated).isEqualTo(expectedCreated);
    final Adaptable expectedModified = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path)
                    .withStatus(HttpStatusCode.NO_CONTENT)
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final ModifyAttributeResponse modifyAttributeResponseModified =
            ModifyAttributeResponse.modified(TestConstants.THING_ID, TestConstants.ATTRIBUTE_POINTER,
                    TestConstants.HEADERS_V_2_NO_CONTENT_TYPE);
    final Adaptable actualModified = underTest.toAdaptable(modifyAttributeResponseModified, channel);
    assertWithExternalHeadersThat(actualModified).isEqualTo(expectedModified);
}