title: Mockito: given versus when
body: <p>In order to stub methods when using JUnit and Mockito, it's possible to use two ways:</p>
  <pre><code>when(foo.doSomething()).thenReturn(somethingElse);
  </code></pre>
  <p>and</p>
  <pre><code>given(foo.doSomething()).willReturn(somethingElse);
  </code></pre>
  <p>Are there any differences between these two stubs?</p>