@Test
public void tryToCreateInstanceWithNullSubject() {

    assertThatExceptionOfType(NullPointerException.class)
            .isThrownBy(() -> MessageHeadersBuilder.newInstance(DIRECTION, THING_ID, null))
            .withMessage("The %s must not be null!", "subject")
            .withNoCause();
}