e5"></a> Example 5:</h2>

<p>Protocol that has methods with attributes being closures.</p>

<p>Protocol definition:</p>
<pre class="highlight swift"><code><span class="c1">//sourcery: AutoMockable</span>
<span class="kd">protocol</span> <span class="kt">ProtocolWithClosures</span> <span class="p">{</span>
    <span class="kd">func</span> <span class="nf">methodThatTakes</span><span class="p">(</span><span class="nv">closure</span><span class="p">:</span> <span class="p">(</span><span class="kt">Int</span><s