@Test
  void followRedirectsIsTrue() throws Throwable {

    String redirectPath = "/redirected";

    server.enqueue(buildMockResponseWithLocationHeader(redirectPath));
    server.enqueue(new MockResponse().setBody("redirectedBody"));
    Request.Options options = buildRequestOptions(true);

    final TestInterfaceAsync api =
        new TestInterfaceAsyncBuilder()
            .options(options)
            .target("http://localhost:" + server.getPort());

    Response response = unwrap(api.response());
    assertThat(response).isNotNull();
    assertThat(response.status()).isEqualTo(200);
    assertThat(Util.toString(response.body().asReader(Util.UTF_8))).isEqualTo("redirectedBody");
    assertThat(server.takeRequest().getPath()).isEqualTo("/");
    assertThat(server.takeRequest().getPath()).isEqualTo("/redirected");
  }
The type of a parameter value may not be the desired type to encode as. Prefer the interface
type.
hc5/src/test/java/feign/hc5/AsyncApacheHttp5ClientTest.java