title: Is there a way to spy on parameters passed to a Mocked object in Mockito
body: <p>I have a service that I am mocking using Mockito. Is there any way that I can verify the parameters passed to the service call?</p>
  
  <p>For example:</p>
  
  <p>I have a service named <code>employeeAnalyzer.calculateAnnualAppraisalForEmployee(Employee emp)</code>.</p>
  
  <p>So from unit test I would like to do something like</p>
  
  <pre><code>verifyThat ("John", emp.getName());
  verifyThat ("Doe", emp.getLastName);
  </code></pre>
  
  <p>Basically I want to spy on the parameter that was sent to the service which I inject using</p>
  
  <pre><code>@InjectMocks
  EmployeeAnalyzer employeeAnalyzer;
  </code></pre>
  
  <p>Thanks in advance. </p>