@Override
    @Test
    @DisplayName("before (HTTP), should modify the HTTP request URI")
    public void beforeHttpModifiesRequestUri() throws Exception {
        // Given
        final HttpClient.Builder builder =
                getHttpClientFactory().newBuilder().addOrReplaceInterceptor("test", new Interceptor() {
                    @Override
                    public void before(BasicBuilder builder, HttpRequest request, RequestTags tags) {
                        builder.uri(URI.create(mockServer.url("valid-url")));
                    }
                });
        // When
        try (HttpClient client = builder.build()) {
            client.sendAsync(client.newHttpRequestBuilder().uri(mockServer.url("/invalid-url")).build(),
                             String.class)
                  .get(10L, TimeUnit.SECONDS);
        }
        // Then
        assertThat(mockServer.getRequestCount()).isEqualTo(2);
        assertThat(mockServer.takeRequest().getRequestLine()).isEqualTo("OPTIONS * HTTP/1.1");
        assertThat(mockServer.takeRequest().getPath()).isEqualTo("/valid-url");
    }
Forked the upstream test case and modified the assertion for the request count.
As Armeria sends an upgrade request in the first place, mockServer.getRequestCount() is 2.
kubernetes/src/test/java/com/linecorp/armeria/client/kubernetes/ArmeriaHttpInterceptorTest.java