title: How to mock the method from parent class with EasyMock
body: <pre><code>public abstract class A{
      public int methodInA(String a){
           return 0;
      }
  }
  
  public class B extends A{
      String a = "ANYTHING";
      public void main(){
          int b = super.methodInA(a);
      }
  }
  </code></pre>
  
  <p>This code is just an example. I am trying to test <code>B</code> and want to mock the method <code>methodINA</code> with arguments from <code>B</code>. Can I do this with EasyMock and if so how? </p>