TestHarness is one of my modules, and it is referenced via the standard define([]) declaration.
In the initialize() method is the following (plus a bunch of others just like it):
$.mockjax({
url: "/api/systeminfo",
contentType: 'text/json',
response: function(settings) {
// Create a first-class object, convert to Json, return as responseText.
var open = moment.utc().startOf('day').add('hours', 14.50);
var close = moment.utc().startOf('day').add('hours', 21.00);
this.responseText = {marketOpen: open.toJSON(), marketClose: close.toJSON() };
}
});
Sorry I can't be more helpful ...