title: Different results when using mockito matchers anyList() and any(List.class)
body: <p>I have found that there are different results when using mockito matchers anyList() and any(List.class). I can not unterstand this, however, since both should actually return the same result. Maybe someone can enlighten me.</p>
  
  <p>I use the matcher to test a controller. My controller binds an attribute to the model called myList. I want to verify that the model attribute is actually a list.</p>
  
  <pre><code>model.addAttribute("myList", Arrays.asList("test"));
  </code></pre>
  
  <p>any(List.class) performs a correct test:</p>
  
  <pre><code>mockMvc.perform(get("/")).andExpect(model().attribute("myList", any(List.class)));
  </code></pre>
  
  <p>But anyList() returns that [] was expected and causes a test failure:</p>
  
  <pre><code>mockMvc.perform(get("/")).andExpect(model().attribute("myList", anyList()));
  </code></pre>
  
  <p>I need anyListOf(String.class) to verify that the list contains strings, but I can not use it because of this behavior.</p>