title: How can I check method params when method call using mockito?
body: <p>I am trying to write unit test which will test <code>fillA</code> method. I need to verify that <code>doSmth</code> calling with correctly initialized <code>a</code> fields. 
  Here is example.</p>
  
  <pre><code>SecondClass secondClass = new SecondClass();
  
  public void execute() {
    A a = new A();
    fillA(a);
    secondClass.doSmth(a);
  }
  
  private void fillA(A a) {
    a.setFirstField("first field");
    a.setSecondField("second field");
  }
  
  class SecondClass {
    public void doSmth(A a) {
      // doSmth
    }
  }
  
  class A {
    private String firstField;
    private String secondField;
  
    // getters and setters
  }
  </code></pre>