title: Describe Mockito sample code
body: <p>In the <a href="http://mockito.org/" rel="nofollow">http://mockito.org/</a> website the following sample code is given to describe the usage of the mockito framework. However i am not able to understand what the following code is trying to test. Please comment on the following code as what is it exactly testing. If it is testing the add method of the List, what does it expect?</p>
  
  <pre><code>import static org.mockito.Mockito.*;
  
  // mock creation
  List mockedList = mock(List.class);
  
  // using mock object - it does not throw any "unexpected interaction" exception
  mockedList.add("one");
  mockedList.clear();
  
  // selective, explicit, highly readable verification
  verify(mockedList).add("one");
  verify(mockedList).clear();
  </code></pre>