function createErrorInsideBatch(oErrorResponse, iHttpStatus) {
		var oError = new Error("n/a");

		oError.$insideBatch = true;
		oError.error = Object.assign({
				code : "CODE",
				message : "Request intentionally failed"
			}, oErrorResponse);
		oError.status = iHttpStatus || 500;

		return oError;
	}
Creates an error to be used in {@link #expectRequest} in order to simulate a JSON error
response inside a $batch by giving an object defining the relevant <code>error</code>
property of that JSON.

@param {object} [oErrorResponse={}]
  The <code>error</code> property of the simulated JSON error response; default
  values for the properties "code" and "message" are provided anyway
@param {number} [iHttpStatus=500]
  The HTTP status code for the simulated error response
@returns {Error}
  The error object for {@link #expectRequest}