code: function () {
              var requestSequence = [];
              for (var i = 0; i < arguments.length; i++) {
                  var requestMatcher = arguments[i];
                  requestMatcher.headers = arrayUniqueConcatenate(requestMatcher.headers, defaultRequestHeaders);
                  requestSequence.push(requestMatcher);
              }
              return {
                  then: function (sucess, error) {
                      return makeRequest(host, port, "/verifySequence", {
                          "httpRequests": requestSequence
                      }).then(
                          function () {
                              sucess && sucess();
                          },
                          function (result) {
                              if (!result.statusCode || result.statusCode !== 202) {
                                  error && error(result);
                              } else {
                                  error && sucess(result);
                              }
                          }
                      );
                  }
              };
          }
docs: Verify a sequence of requests has been sent for example:
  
  client.verifySequence(
  {
  'method': 'POST',
  'path': '/first_request'
  },
  {
  'method': 'POST',
  'path': '/second_request'
  },
  {
  'method': 'POST',
  'path': '/third_request'
  }
  );
  
  @param arguments the list of http requests that must be matched for this verification to pass