@Test
    void lambdaExpressionDecorator() throws Exception {
        final FooService inner = new FooService();
        final HttpService outer = inner.decorate((delegate, ctx, req) -> {
            final HttpRequest newReq = HttpRequest.of(HttpMethod.GET, "/");
            return delegate.serve(ctx, newReq);
        });

        assertDecoration(inner, outer);
    }
Tests if a user can write a decorator with working as() and serviceAdded() using lambda expressions only.
core/src/test/java/com/linecorp/armeria/server/ServiceTest.java