</span><span class="p">)</span>
<span class="kt">XCTAssertEqual</span><span class="p">(</span><span class="n">mock</span><span class="o">.</span><span class="nf">methodThatTakesArrayOfUsers</span><span class="p">(</span><span class="nv">array</span><span class="p">:</span> <span class="p">[</span><span class="n">user2</span><span class="p">,</span> <span class="n">user1</span><span class="p">]),</span> <span class="mi">0</span><span class="p">)</span>
</code></pre>
<h2 id='a-name-example4-a-example-4' class