title: What is the difference between mock() and stub() when using Mockito?
body: <p>They both seem to do the same thing - why would you use one in preference to the other?</p>
  
  <pre><code>org.mockito.Mockito.stub()
  org.mockito.Mockito.mock()
  </code></pre>