@Test
void invalidWildcardVariable() {

    assertThatThrownBy(() -> root.register("/path/:var1(*)/"))
            .isInstanceOf(Error.class)
            .hasMessageContaining("wildcard path variable must be the last");
}