@Override
        public HttpResponse serve(ServiceRequestContext ctx, HttpRequest req) throws Exception {
            return HttpResponse.of(req.aggregate().thenApply(aggReq -> {
                recordedRequests.add(new RecordedRequest(ctx, aggReq));

                final HttpResponse response = mockResponses.poll();
                if (response == null) {
                    throw new IllegalStateException(
                            "No response enqueued. Did you call MockWebServer.enqueue? Request: " + aggReq);
                }

                return response;
            }));
        }
Resets the mocking state of this extension. This only needs to be called if using this class without
JUnit 5.
junit5/src/main/java/com/linecorp/armeria/testing/junit5/server/mock/MockWebServerExtension.java