# File lib/faraday/adapter/test.rb, line 31
        def match(request_method, path, headers, body)
          return false if !@stack.key?(request_method)
          stack = @stack[request_method]
          consumed = (@consumed[request_method] ||= [])

          if stub = matches?(stack, path, headers, body)
            consumed << stack.delete(stub)
            stub
          else
            matches?(consumed, path, headers, body)
          end
        end