assertEquals(md.template().queries().get("name"), ImmutableSet.of("{name}"));
assertEquals(md.template().queries().get("type"), ImmutableSet.of("{type}"));
assertEquals(md.indexToName().get(0), ImmutableSet.of("domainId"));
assertEquals(md.indexToName().get(1), ImmutableSet.of("name"));
assertEquals(md.indexToName().get(2), ImmutableSet.of("type"));
assertEquals(md.template().toString(), "GET /domains/{domainId}/records?name={name}&type={type} HTTP/1.1\n");
}
@Test(expectedExceptions = IllegalStateException.class, expectedExceptionsMessageRegExp = "QueryParam.value\\(\\) was empty on parameter 0")
public void emptyQueryParam() throws Exception {
contract.parseAndValidatateMetadata(WithPathAndQueryParams.class.getDeclaredMethod("emptyQueryParam", String.class));