">XCTAssertEqual</span><span class="p">(</span><span class="n">mock</span><span class="o">.</span><span class="n">propertyOptional</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
</code></pre>
<h3 id='a-name-example1-4-a-protocol-that-adopts-other-protocols' class='heading'><a name="example1.4"></a> Protocol, that adopts other protocols</h3>

<p>By default, SwiftyMocky will generate Mock, adopting all methods/properties gathered from all protocols, so it will support</p>

<p