@Test
public void regexPathOnMethodOrType() throws Exception {

  assertThat(parseAndValidateMetadata(
      PathOnType.class, "pathParamWithRegex", String.class).template())
          .hasUrl("/base/regex/{param}");
  assertThat(parseAndValidateMetadata(
      PathOnType.class, "pathParamWithMultipleRegex", String.class, String.class).template())
          .hasUrl("/base/regex/{param1}/{param2}");
  assertThat(parseAndValidateMetadata(
      ComplexPathOnType.class, "pathParamWithMultipleRegex", String.class, String.class)
          .template())
              .hasUrl("/{baseparam}/regex/{param1}/{param2}");
}