title: Mocking methods of local scope objects with Mockito
body: <p>I need some help with this:</p>
  
  <p>Example:</p>
  
  <pre><code>void method1{
      MyObject obj1=new MyObject();
      obj1.method1();
  }
  </code></pre>
  
  <p>I want to mock <code>obj1.method1()</code> in my test but to be transparent so I don't want make and change of code.
  Is there any way to do this in Mockito?</p>