@Test
public void tryToCreateInstanceFromMapWithoutThingId() {

    final Map<String, String> insufficientHeaders = new HashMap<>();
    insufficientHeaders.put(MessageHeaderDefinition.DIRECTION.getKey(), MessageDirection.TO.toString());
    insufficientHeaders.put(MessageHeaderDefinition.SUBJECT.getKey(), SUBJECT);
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> MessageHeadersBuilder.of(insufficientHeaders))
            .withMessage("The headers did not contain a value for mandatory header with key <%s>!",
                    MessageHeaderDefinition.THING_ID.getKey())
            .withNoCause();
}