@Deprecated
  public RequestTemplate method(String method) {
    checkNotNull(method, "method");
    try {
      this.method = HttpMethod.valueOf(method);
    } catch (IllegalArgumentException iae) {
      throw new IllegalArgumentException("Invalid HTTP Method: " + method);
    }
    return this;
  }
@SuppressWarnings("deprecation")
  @Test
  void uriStuffedIntoMethod() {
    Throwable exception = assertThrows(IllegalArgumentException.class,
        () -> new RequestTemplate().method("/path?queryParam={queryParam}"));
    assertThat(exception.getMessage())
        .contains("Invalid HTTP Method: /path?queryParam={queryParam}");
  }