title: Mock a superclass constructor
body: <p>I would like to know if I can mock a super class constructors call and its super() calls.</p>
  
  <p>For example, I have the following classes</p>
  
  <pre><code>class A
  {
      A(..)
      {
          super(..)
      }
  }   
  
  class B extends A
  {
      B(C c)
      {
          super(c)
      }
  }
  </code></pre>
  
  <p>So, I am planning to unit test some methods in class B, but when creating an instance it does call the super class constructors making it tough to write unit tests. So, how can I mock all the super class constructor calls. Also I would like to mock few methods in class A so that it does return  few values as I need.</p>
  
  <p>Thanks!!</p>