title: How to assert that two Lists<String> are equal, ignoring order
body: <p>I am using <a href="http://joel-costigliola.github.io/assertj/" rel="noreferrer">AssertJ</a> and I am trying to assert that two <code>List&lt;String&gt;</code> contain same strings, ignoring the order.</p>
  
  <pre><code>List&lt;String&gt; expected = Arrays.asList("Something-6144-77.pdf", "d-6144-77.pdf", "something-6144-78.pdf", "Something-6144-8068.pdf");
  List&lt;String&gt; actual = new ArrayList&lt;String&gt;();
  
  assertThat(actual.size()).isEqualTo(expected.size());
  
  // This line gives the error: "The method containsExactlyInAnyOrder(String...) in the type ListAssert&lt;String&gt; is not applicable for the arguments (List&lt;String&gt;)"
  assertThat(actual).containsExactlyInAnyOrder(expected);
  </code></pre>
  
  <p>How can I fix the compilation error below that is appearing when trying to use <code>containsExactlyInAnyOrder()</code>? </p>
  
  <blockquote>
    <p>"The method containsExactlyInAnyOrder(String...) in the type ListAssert is not applicable for the arguments (List)"</p>
  </blockquote>