fnSpyRequestsInDatajs = function (fnCallback) {
		// spy original function
		var fnDatajsRequest = OData.request;
		OData.request = function (oRequest, mParameters) {
			// restore the original function
			OData.request = fnDatajsRequest;

			// get request information for spy
			var aChangeRequests = oRequest.data.__batchRequests[0].__changeRequests;
			var aAllRequests = oRequest.data.__batchRequests;

			fnCallback(aChangeRequests, aAllRequests);

			// ignore actual request sending if necessary
			// most of the time, we only care for the validity of the parameters
			if (!mParameters.suppressRequest) {
				fnDatajsRequest.apply(this, arguments);
			}
		};
	}
Creates a simple spy for the OData.request function of the datajs library.
Used to check the internals of an OData.request.