@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}");
  }
Implementations have a bug if they pass junk as the http method.
core/src/test/java/feign/RequestTemplateTest.java