static makeMockObjectStrict(obj) {
    for (const name in obj) {
      obj[name].and.throwError(new Error(name));
    }
  }
Accepts a mock object (i.e. a simple JavaScript object composed of jasmine
spies) and makes it strict.  This means that every spy in the given object
will be made to throw an exception by default.
@param {!Object} obj