@Test
public void wildcardPathHasAsteriskLeaf() {

    assertThatIllegalArgumentException()
            .isThrownBy(() -> DefaultMetadataHeaderKey.of(JsonPointer.of("/*/*")))
            .withMessage("The path of a metadata header key must not contain <*> at level <1>!")
            .withNoCause();
}