@Test
  void followRedirectsIsFalse() throws InterruptedException {
    final JaxRsTestInterface testInterface = buildTestInterface();

    String redirectPath = getRedirectionUrl();
    server.enqueue(buildMockResponseWithLocationHeader(redirectPath));
    Request.Options options = buildRequestOptions(false);

    FeignException feignException =
        assertThrows(FeignException.class, () -> testInterface.withOptions(options));
    assertThat(feignException.status()).isEqualTo(302);
    assertThat(feignException.responseHeaders().get("location").stream().findFirst().orElse(null))
        .isEqualTo(redirectPath);
    assertThat(server.takeRequest().getPath()).isEqualTo("/withRequestOptions");
  }
Tests client-specific behavior, such as ensuring Content-Length is sent when specified.
hc5/src/test/java/feign/hc5/ApacheHttp5ClientTest.java