@Override
        protected void configure(ServerBuilder sb) throws Exception {
            final HttpService service = (ctx, req) -> HttpResponse.of(500);
            // `/a` should be redirected to `/a/`.
            sb.service("/a/", service);

            // `/b` should be redirected to `/b/`.
            sb.service("prefix:/b/", service);

            // `/c/1` should be redirected to `/c/1/`.
            sb.service("/c/{value}/", service);

            // `/d` should NOT be redirected because `/d` has a mapping.
            sb.service("/d", (ctx, req) -> HttpResponse.of(200));
            sb.service("prefix:/d/", service);

            // `GET /e` should be redirected to `/e/`.
            // `DELETE /e` should NOT be redirected to `/e/`.
            sb.route().get("/e/").build(service);

            // `/f` should be redirected to `/f/`.
            // The decorator at `/f/` should NOT be evaluated during redirection, because the route doesn't
            // match yet. However, if a client sends a request to `/f/`, the decorator will be evaluated,
            // returning `202 Accepted`.
            sb.service("/f/", service);
            sb.routeDecorator().pathPrefix("/f/").build((delegate, ctx, req) -> HttpResponse.of(202));
        }
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