function expectOutOfBoundsException (obj, fn, arg1) {
  const expected = true
  const message = 'Caught an INDEX_SIZE_ERR exception'
  let result = false
  try {
    obj[fn](arg1)
  } catch (e) {
    if (e.code === 1) {
      result = true
    }
  }
  const actual = result
  return { result, message, actual, expected }
}
Expects an out of bounds `INDEX_SIZE_ERR` exception.
@param {GenericObject} obj
@param {GenericCallback} fn
@param {any} arg1
@returns {void}