Language: Java
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
    void stripMatrixVariables() throws InterruptedException {
        final AggregatedHttpResponse response = server.blockingWebClient().get("/foo;a=b");
        assertThat(response.headers().status()).isSameAs(HttpStatus.OK);
        final ServiceRequestContextCaptor captor = server.requestContextCaptor();
        final ServiceRequestContext sctx = captor.poll();
        assertThat(sctx.path()).isEqualTo("/foo");
        assertThat(sctx.routingContext().requestTarget().maybePathWithMatrixVariables())
                .isEqualTo("/foo;a=b");
    }