@Test
  void emptyTarget() throws InterruptedException {
    server.enqueue(new MockResponse());

    UriTarget uriTarget = Feign.builder().target(Target.EmptyTarget.create(UriTarget.class));

    String host = server.getHostName();
    int port = server.getPort();

    uriTarget.get(URI.create("http://" + host + ":" + port + "/path?query=param"));

    assertThat(server.takeRequest()).hasPath("/path?query=param").hasQueryParams("query=param");
  }
Per <a href="https://github.com/Netflix/feign/issues/227">#227</a>, some may want to opt out of
percent encoding. Here's how.
core/src/test/java/feign/TargetTest.java