@Test
  void fragmentShouldNotBeEncodedInUri() {
    RequestTemplate template =
        new RequestTemplate()
            .method(HttpMethod.GET)
            .uri("/path#fragment")
            .queries(mapOf("key1", Collections.singletonList("value1")));

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