@Test
public void getInstanceWithNullKey() {

    assertThatNullPointerException()
            .isThrownBy(() -> DefaultMdcEntry.of(null, "bar"))
            .withMessage("The key must not be null!")
            .withNoCause();
}