@SuppressWarnings("ConstantConditions")
@Test
public void tryToCreateInstanceWithNullLogger() {

    assertThatNullPointerException()
            .isThrownBy(() -> MainMethodExceptionHandler.getInstance(null))
            .withMessage("The %s must not be null!", "logger")
            .withNoCause();
}