@Test
public void tryToCreateInstanceFromEmptyJsonObject() {

    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> MessageHeadersBuilder.of(JsonFactory.newObject()))
            .withMessage("The headers did not contain a value for mandatory header with key <%s>!",
                    MessageHeaderDefinition.DIRECTION.getKey())
            .withNoCause();
}