title: How to verify json array using rest assured?
body: <p>I have a JSON response:</p>
  
  <pre><code>["alice", "jason", "steve", "alex"]
  </code></pre>
  
  <p>then when use rest assured to test:</p>
  
  <pre><code>when().
         get("/names").
  then().
         body(containsInAnyOrder("alice","jason","steve","alex"));
  </code></pre>
  
  <p>This is not working as I expected, it gives an error:</p>
  
  <pre><code>Expected: iterable over ["alice", "jason", "steve", "alex"] in any order
    Actual: ["alice", "jason", "steve", "alex"]
  </code></pre>
  
  <p>Also tried with:</p>
  
  <pre><code>when().
         get("/names").
  then().
         body(hasItems("alice","jason","steve","alex"));
  </code></pre>
  
  <p>also not working.</p>
  
  <p>How can I verify a simple JSON array in the response?</p>