@Test
public void validatesThatFeatureIDIsEqualInHeadersAndWrappingCommand() {

    final String featureId = "foo";
    final ThingId thingId = ThingId.generateRandom();
    final String subject = "bar";
    final MessageHeaders messageHeadersWithDifferentFeatureId =
            MessageHeaders.newBuilder(MessageDirection.TO, thingId, subject)
                    .featureId("bumlux")
                    .build();
    final Message<Object> message = Message.newBuilder(messageHeadersWithDifferentFeatureId).build();
    final DittoHeaders dittoHeaders = DittoHeaders.empty();
    assertThatExceptionOfType(FeatureIdInvalidException.class)
            .isThrownBy(() ->
                    SendFeatureMessageResponse.of(thingId, featureId, message, HttpStatusCode.MULTI_STATUS,
                            dittoHeaders))
            .withMessage("The Message contained feature ID <bumlux>. Expected was feature ID <foo>.");
}