@Test
public void retrieveDefinitionResponseToAdaptable() {

    final JsonPointer path = JsonPointer.of("/definition");
    final TopicPath topicPath = topicPath(TopicPath.Action.RETRIEVE);
    final Adaptable expected = Adaptable.newBuilder(topicPath)
            .withPayload(Payload.newBuilder(path)
                    .withStatus(HttpStatusCode.OK)
                    .withValue(TestConstants.JSON_THING_DEFINITION)
                    .build())
            .withHeaders(TestConstants.HEADERS_V_2)
            .build();
    final RetrieveThingDefinitionResponse retrieveDefinition =
            RetrieveThingDefinitionResponse.of(THING_ID, TestConstants.THING_DEFINITION,
                    TestConstants.HEADERS_V_1_NO_CONTENT_TYPE);
    final Adaptable actual = underTest.toAdaptable(retrieveDefinition, channel);
    assertWithExternalHeadersThat(actual).isEqualTo(expected);
}