title: How to mock super class method using Mockito or any other relevant java framework
body: <p>My Scenario is as below</p>
  <pre><code>class SuperClass{
     public void run(){
        System.out.println(&quot;I am running in Super class&quot;);
     }
  }
  
  class ChildClass extends SuperClass{
    public void childRunner(){
       System.out.println(&quot;Step 1&quot;);
       System.out.println(&quot;Step 2&quot;);
       **run();**
       System.out.println(&quot;Last Step&quot;);
    }
  }
  </code></pre>
  <p>Now I want to test the <code>childRunner()</code> method of <code>ChildClass</code> and since this method internally calls the super class method, i need some help/piece of code on how to mock the <code>run()</code> method which is present in <code>SuperClass</code>.</p>