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

    String redirectPath = "/redirected";
    server.enqueue(buildMockResponseWithHeaderLocation(redirectPath));
    server.enqueue(new MockResponse().setBody("redirect"));
    Options options = buildRequestOptions(true);

    assertThat(testInterface.withOptions(options)).isEqualTo("redirect");
    assertThat(server.takeRequest().getPath()).isEqualTo("/withOptions");
    assertThat(server.takeRequest().getPath()).isEqualTo(redirectPath);
  }
Tests client-specific behavior, such as ensuring Content-Length is sent when specified.
httpclient/src/test/java/feign/httpclient/ApacheHttpClientTest.java