@Test
public void mapToSendFeatureMessageResponse() {

    final Map<String, String> headers = Map.of(
            "content-type", "application/json",
            "status", "418",
            "ditto-message-subject", "hello/world",
            "ditto-message-thing-id", "thing:id",
            "ditto-message-feature-id", "accelerometer"
    );
    final String payload = "{\"lorem\":\"ipsum\"}";
    final List<Adaptable> adaptables =
            underTest.map(ExternalMessageFactory.newExternalMessageBuilder(headers)
                    .withText(payload)
                    .build());
    assertThat(adaptables).hasSize(1);
    final Signal<?> signal = ADAPTER.fromAdaptable(adaptables.get(0));
    assertThat(signal).isInstanceOf(SendFeatureMessageResponse.class);
    final SendFeatureMessageResponse<?> response = (SendFeatureMessageResponse<?>) signal;
    assertThat(response.getStatusCode()).isEqualTo(HttpStatusCode.IM_A_TEAPOT);
    assertThat(response.getEntityId().toString()).isEqualTo("thing:id");
    assertThat(response.getFeatureId()).isEqualTo("accelerometer");
    assertThat(response.getMessage().getPayload().orElseThrow()).isEqualTo(JsonObject.of(payload));
}