@Test
public void policyIdCreatedToAdaptable() {

    final PolicyIdCreated policyIdCreated =
            PolicyIdCreated.of(TestConstants.THING_ID, TestConstants.Policies.POLICY_ID,
                    TestConstants.REVISION, setChannelHeader(TestConstants.DITTO_HEADERS_V_2));
    final JsonPointer path = JsonPointer.of("/policyId");
    final Adaptable expected = Adaptable.newBuilder(topicPathCreated())
            .withPayload(Payload.newBuilder(path)
                    .withValue(JsonValue.of(TestConstants.Policies.POLICY_ID))
                    .withRevision(TestConstants.REVISION)
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final Adaptable actual = underTest.toAdaptable(policyIdCreated, channel);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}