/// <summary>
        /// Add a collection of headers to the HTTP request expectation.
        /// </summary>
        /// <param name="expectation">The HTTP request expectation.</param>
        /// <param name="headers">The new headers.</param>
        /// <returns>The HTTP request expectation.</returns>
        /// <exception cref="System.ArgumentNullException">expectation</exception>
        public static RequestExpectation ExpectedRequestHeaders(this RequestExpectation expectation, IDictionary <string, string> headers)
        {
            if (expectation == null)
            {
                throw new ArgumentNullException("expectation");
            }

            if (headers == null)
            {
                return(expectation);
            }

            foreach (var expectedHeader in headers)
            {
                expectation.ExpectedRequestHeader(expectedHeader.Key, expectedHeader.Value);
            }

            return(expectation);
        }