@Test
    void redirection() {
        final BlockingWebClient client = BlockingWebClient.of(server.httpUri());
        AggregatedHttpResponse res;

        res = client.get("/a");
        assertThat(res.status()).isSameAs(HttpStatus.TEMPORARY_REDIRECT);
        assertThat(res.headers().get(HttpHeaderNames.LOCATION)).isEqualTo("a/");

        res = client.get("/b");
        assertThat(res.status()).isSameAs(HttpStatus.TEMPORARY_REDIRECT);
        assertThat(res.headers().get(HttpHeaderNames.LOCATION)).isEqualTo("b/");

        res = client.get("/c/1");
        assertThat(res.status()).isSameAs(HttpStatus.TEMPORARY_REDIRECT);
        assertThat(res.headers().get(HttpHeaderNames.LOCATION)).isEqualTo("1/");

        res = client.get("/d");
        assertThat(res.status()).isSameAs(HttpStatus.OK);

        res = client.get("/e");
        assertThat(res.status()).isSameAs(HttpStatus.TEMPORARY_REDIRECT);
        assertThat(res.headers().get(HttpHeaderNames.LOCATION)).isEqualTo("e/");

        res = client.delete("/e");
        assertThat(res.status()).isSameAs(HttpStatus.NOT_FOUND);

        res = client.get("/f");
        assertThat(res.status()).isSameAs(HttpStatus.TEMPORARY_REDIRECT);
        assertThat(res.headers().get(HttpHeaderNames.LOCATION)).isEqualTo("f/");

        res = client.get("/f/");
        assertThat(res.status()).isSameAs(HttpStatus.ACCEPTED);
    }
Makes sure that {@link Server} sends a redirect response for the paths without a trailing slash,
only when there's a {@link Route} for the path with a trailing slash.
core/src/test/java/com/linecorp/armeria/server/HttpServerAutoRedirectTest.java