 class="p">(</span><span class="nv">param</span><span class="p">:</span> <span class="p">[</span><span class="kt">U</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">U</span> <span class="k">where</span> <span class="kt">U</span><span class="p">:</span> <span class="kt">Equatable</span>
<span class="p">}</span>
</code></pre>

<p>Sample test when using generic methods:</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">mock</span> <span class="o">=<