@Test
public void tryToCreateInstanceWithMissingFeatureId() {

    final MessageHeaders messageHeaders = MessageHeaders.newBuilder(MessageDirection.TO, THING_ID, SUBJECT)
            .contentType(CONTENT_TYPE)
            .build();
    final Message<Object> message = MessagesModelFactory.newMessageBuilder(messageHeaders)
            .payload(JsonFactory.newObject(KNOWN_RAW_PAYLOAD_STR))
            .build();
    assertThatExceptionOfType(FeatureIdInvalidException.class)
            .isThrownBy(() -> SendFeatureMessage.of(THING_ID, FEATURE_ID, message, DITTO_HEADERS))
            .withMessage("The Message did not contain a feature ID at all! Expected was feature ID <%s>.",
                    FEATURE_ID)
            .withNoCause();
}