@Test
public void wildcardPathHasTooFewLevels() {

    assertThatIllegalArgumentException()
            .isThrownBy(() -> DefaultMetadataHeaderKey.of(JsonPointer.of("/*")))
            .withMessage("A wildcard path of a metadata header key must have exactly two levels but it had <1>!")
            .withNoCause();
}