pan class="n">mock</span><span class="p">,</span> <span class="o">.</span><span class="nf">methodThatTakesUser</span><span class="p">(</span><span class="nv">user</span><span class="p">:</span> <span class="o">.</span><span class="nf">value</span><span class="p">(</span><span class="n">user2</span><span class="p">),</span> <span class="nv">willThrow</span><span class="p">:</span> <span class="kt">UserVerifyError</span><span class="o">.</span><span class="n">tooYoung</span><span class="p">))</span>
<span cla