title: Hamcrest compare collections
body: <p>I'm trying to compare 2 lists:</p>
  
  <pre><code>assertThat(actual.getList(), is(Matchers.containsInAnyOrder(expectedList)));
  </code></pre>
  
  <p>But idea </p>
  
  <pre><code>java: no suitable method found for assertThat(java.util.List&lt;Agent&gt;,org.hamcrest.Matcher&lt;java.lang.Iterable&lt;? extends model.Agents&gt;&gt;)
  method org.junit.Assert.&lt;T&gt;assertThat(T,org.hamcrest.Matcher&lt;T&gt;) is not applicable
    (no instance(s) of type variable(s) T exist so that argument type org.hamcrest.Matcher&lt;java.lang.Iterable&lt;? extends model.Agents&gt;&gt; conforms to formal parameter type org.hamcrest.Matcher&lt;T&gt;)
  method org.junit.Assert.&lt;T&gt;assertThat(java.lang.String,T,org.hamcrest.Matcher&lt;T&gt;) is not applicable
    (cannot instantiate from arguments because actual and formal argument lists differ in length)
  </code></pre>
  
  <p>How should I write it?</p>