@Test
public void getFailedInstanceWithNullReasonOfFailure() {

    assertThatNullPointerException()
            .isThrownBy(() -> DefaultAuthenticationResult.failed(dittoHeaders, null))
            .withMessage("The reasonOfFailure must not be null!")
            .withNoCause();
}