le test:</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">mock</span> <span class="o">=</span> <span class="kt">ProtocolWithClosuresMock</span><span class="p">()</span>

<span class="n">mock</span><span class="o">.</span><span class="nf">methodThatTakesEscaping</span><span class="p">(</span><span class="nv">closure</span><span class="p">:</span> <span class="p">{</span> <span class="nv">$0</span> <span class="p">})</span>
<span class="n">mock</span><span class="o">.</span><