Inheritance: ISerializable
		private bool RequestHasAuthHeaderContaining(Request request, string expectedHeader)
		{
			if (!request.Headers.ContainsKey("Authorization"))
			{
				return false;
			}

			var actualHeader = request.Headers["Authorization"];
			return (!string.IsNullOrEmpty(actualHeader) && actualHeader.Contains(expectedHeader));
		}
		protected ApiException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
			OriginalRequest = (Request)info.GetValue("OriginalRequest", typeof(Request));
		}
		protected ApiException(string msg, Request originalRequest)
			: base(msg)
		{
			OriginalRequest = originalRequest;
		}
		protected ApiException(string msg, Exception innerException, Request originalRequest)
			: base(msg, innerException)
		{
			OriginalRequest = originalRequest;
		}
		public Task<Response> Send(Request request)
		{
			SendCount++;
			return Task.FromResult(_fakeResponse);
		}