How to mock a cast object
<p>I am new to mock testing and was wondering how I would go about mocking the following with mockito. </p>

<pre><code>uDAO = (UserDAO) dao;
</code></pre>

<p>where dao is defined as </p>

<pre><code>protected DAO&lt;T, Long&gt; dao;
</code></pre>

<p>Thanks!  </p>