Does Mock call Real Objects?
<ul>
<li><p>How are mock objects better than real objects in unit testing?</p></li>
<li><p>When you create a mock object, what exactly it means? For example let's say you create </p>

<p>A a = Mockito.mock(A.class);</p>

<p>Does it create an object of class A? or something else?</p></li>
<li>When you create a mocked object and use it in calling a method, say a.method1(), how does the mocked object knows that it should call method1 itself?</li>
</ul>

<p>Kindly let me know about these.</p>