@Test
public void retrieveAclEntryWithFieldsToAdaptable() {

    final JsonFieldSelector selectedFields = JsonFieldSelector.newInstance("READ");
    final TopicPath topicPath = topicPath(TopicPath.Action.RETRIEVE);
    final JsonPointer path = JsonPointer.of("/acl/" + TestConstants.AUTHORIZATION_SUBJECT);
    final Adaptable expected = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path).withFields(selectedFields).build())
            .withHeaders(TestConstants.HEADERS_V_1)
            .build();
    final RetrieveAclEntry retrieveAclEntry =
            RetrieveAclEntry.of(TestConstants.THING_ID, TestConstants.AUTHORIZATION_SUBJECT, selectedFields,
                    TestConstants.HEADERS_V_1_NO_CONTENT_TYPE);
    final Adaptable actual = underTest.toAdaptable(retrieveAclEntry, channel);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}