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

    String redirectPath = "/redirected";
    server.enqueue(buildMockResponseWithHeaderLocation(redirectPath));
    Options options = buildRequestOptions(false);

    FeignException feignException =
        assertThrows(FeignException.class, () -> testInterface.withOptions(options));
    assertThat(feignException.status()).isEqualTo(302);
    assertThat(server.takeRequest().getPath()).isEqualTo("/withOptions");
  }
Tests client-specific behavior, such as ensuring Content-Length is sent when specified.
httpclient/src/test/java/feign/httpclient/ApacheHttpClientTest.java