@Test
public void initializeWithCopiedPolicyAndWithInitialPolicy() {

    final String thingReference = "{{ ref:things/my_namespace:my_thing/policyId }}";
    softly.assertThatThrownBy(() ->
            CreateThing.of(TestConstants.Thing.THING, JsonObject.newBuilder().build(), thingReference,
                    TestConstants.EMPTY_DITTO_HEADERS))
            .isInstanceOf(PoliciesConflictingException.class)
            .hasMessage(MessageFormat.format(
                    "The Thing with ID ''{0}'' could not be created as it contained an inline Policy as" +
                            " well as a policyID to copy.", TestConstants.Thing.THING_ID));
}