@Test
void invalidVariable() {

    assertThatThrownBy(() -> new PathPatternValidator("/path/:name(", true).validate())
            .isInstanceOf(Error.class)
            .hasMessageContaining(":name(");
}