@Test
public void modifyThingFromAdaptableWithPolicyIdToCopy() {

    final String policyIdToCopy = "someNameSpace:someId";
    final ModifyThing expected =
            ModifyThing.of(TestConstants.THING_ID, TestConstants.THING, null, policyIdToCopy,
                    TestConstants.DITTO_HEADERS_V_2);
    final TopicPath topicPath = topicPath(TopicPath.Action.MODIFY);
    final JsonPointer path = JsonPointer.empty();
    final Adaptable adaptable = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path)
                    .withValue(TestConstants.THING.toJson(FieldType.regularOrSpecial())
                            .set(ModifyThing.JSON_COPY_POLICY_FROM, policyIdToCopy))
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final ThingModifyCommand<?> actual = underTest.fromAdaptable(adaptable);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}