MethodInfo { @JsonProperty public List<String> exampleQueries() { return exampleQueries; } MethodInfo(String name,
                      TypeSignature returnTypeSignature,
                      Iterable<FieldInfo> parameters,
                      Iterable<TypeSignature> exceptionTypeSignatures,
                      Iterable<EndpointInfo> endpoints,
                      HttpMethod httpMethod,
                      @Nullable String docString);  MethodInfo(String name,
                      TypeSignature returnTypeSignature,
                      Iterable<FieldInfo> parameters,
                      Iterable<TypeSignature> exceptionTypeSignatures,
                      Iterable<EndpointInfo> endpoints,
                      Iterable<HttpHeaders> exampleHeaders,
                      Iterable<String> exampleRequests,
                      Iterable<String> examplePaths,
                      Iterable<String> exampleQueries,
                      HttpMethod httpMethod,
                      @Nullable String docString); @JsonProperty String name(); @JsonProperty TypeSignature returnTypeSignature(); @JsonProperty Set<EndpointInfo> endpoints(); @JsonProperty List<FieldInfo> parameters(); @JsonProperty Set<TypeSignature> exceptionTypeSignatures(); @JsonProperty List<HttpHeaders> exampleHeaders(); @JsonProperty List<String> exampleRequests(); @JsonProperty List<String> examplePaths(); @JsonProperty List<String> exampleQueries(); @JsonProperty HttpMethod httpMethod(); @JsonProperty @JsonInclude(Include.NON_NULL) @Nullable String docString(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }
@Test void validQueryString() { for (String queryString : ImmutableList.of("foo", "?foo", "??foo")) { assertThat(newMethodInfo(ImmutableList.of(), ImmutableList.of(queryString)).exampleQueries()) .containsOnly(queryString); } }