@Test
public void wildcardPathHasTooManyLevels() {

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