@Test
public void pathAndQueryParams() throws Exception {

  final MethodMetadata md =
      parseAndValidateMetadata(WithPathAndQueryParams.class,
          "recordsByNameAndType", int.class, String.class, String.class);
  assertThat(md.template())
      .hasQueries(entry("name", asList("{name}")), entry("type", asList("{type}")));
  assertThat(md.indexToName()).containsExactly(entry(0, asList("domainId")),
      entry(1, asList("name")),
      entry(2, asList("type")));
}