title: mockito ArrayList<String> problem
body: <p>I have a method that I am trying to unit test.  This method takes a parameter as an ArrayList and does things with it.   The mock I am trying to define is:</p>
  
  <pre><code>ArrayList&lt;String&gt; mocked = mock(ArrayList.class);
  </code></pre>
  
  <p>which gives a [unchecked] unchecked conversion" warning. </p>
  
  <pre><code>ArrayList&lt;String&gt; mocked = mock(ArrayList&lt;String&gt;.class);
  </code></pre>
  
  <p>gives me an error. </p>
  
  <p>Anyone care to enlighten me as to what I am doing wrong?</p>