@Test
void notAllowWildcardVariable() {

    assertThatThrownBy(() -> new PathPatternValidator("/path/:name(*)", false).validate())
            .isInstanceOf(Error.class)
            .hasMessageContaining("wildcard path variable is not allowed");
}