@Test
public void retrieveFeaturesWithFieldsToAdaptable() {

    final JsonFieldSelector selectedFields = JsonFieldSelector.newInstance("foo");
    final TopicPath topicPath = topicPath(TopicPath.Action.RETRIEVE);
    final JsonPointer path = JsonPointer.of("/features");
    final Adaptable expected = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path).withFields(selectedFields).build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final RetrieveFeatures retrieveFeatures =
            RetrieveFeatures.of(TestConstants.THING_ID, selectedFields, TestConstants.HEADERS_V_2_NO_CONTENT_TYPE);
    final Adaptable actual = underTest.toAdaptable(retrieveFeatures, channel);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}