@Test
public void modifyAclEntryResponseFromAdaptable() {

    final TopicPath topicPath = topicPath(TopicPath.Action.MODIFY);
    final JsonPointer path = JsonPointer.of("/acl/" + TestConstants.AUTHORIZATION_SUBJECT.getId());
    final ModifyAclEntryResponse expectedCreated =
            ModifyAclEntryResponse.created(TestConstants.THING_ID, TestConstants.ACL_ENTRY,
                    TestConstants.DITTO_HEADERS_V_1);
    final Adaptable adaptableCreated = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path)
                    .withStatus(HttpStatusCode.CREATED)
                    .withValue(TestConstants.ACL_ENTRY.getPermissions().toJson())
                    .build())
            .withHeaders(TestConstants.HEADERS_V_1)
            .build();
    final ThingModifyCommandResponse<?> actualCreated = underTest.fromAdaptable(adaptableCreated);
    assertWithExternalHeadersThat(actualCreated).isEqualTo(expectedCreated);
    final ModifyAclEntryResponse expectedModified =
            ModifyAclEntryResponse.modified(TestConstants.THING_ID, TestConstants.ACL_ENTRY,
                    TestConstants.DITTO_HEADERS_V_1);
    final Adaptable adaptableModified = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path)
                    .withStatus(HttpStatusCode.NO_CONTENT)
                    .withValue(TestConstants.ACL_ENTRY.getPermissions().toJson())
                    .build())
            .withHeaders(TestConstants.HEADERS_V_1)
            .build();
    final ThingModifyCommandResponse<?> actualModified = underTest.fromAdaptable(adaptableModified);
    assertWithExternalHeadersThat(actualModified).isEqualTo(expectedModified);
}