How to pass mock parameter in a method using Mockito & Java
<p>I have class like the following:</p>

<pre><code>public class Service {
  public String method1 (class1, class2){
  //do something
  return result          //Returns a string based on something 
 }
}
</code></pre>

<p>I want to test the class Service by calling the method 'method1' with mocked parameter (objects of Class1 &amp; Class2). I don't have any idea, how to do this using Mockito.Can anyone help me with the initial push ?</p>