title: How to stub a method of jasmine mock object?
body: <p>According to the Jasmine documentation, a mock can be created like this:</p>
  
  <pre><code>jasmine.createSpyObj(someObject, ['method1', 'method2', ... ]);
  </code></pre>
  
  <p>How do you stub one of these methods? For example, if you want to test what happens when a method throws an exception, how would you do that?</p>