@Test
  void fragmentShouldBeExtractedWhenQueryParamsExist() {
    RequestTemplate template =
        new RequestTemplate().method(HttpMethod.GET).uri("/path?query=queryValue#fragment", true);

    assertThat(template.url()).isEqualTo("/path?query=queryValue#fragment");
    assertThat(template.queryLine()).isEqualTo("?query=queryValue");
  }
Implementations have a bug if they pass junk as the http method.
core/src/test/java/feign/RequestTemplateTest.java