title: JMockit: alter parameter of a mocked method
body: <p>Can JMockit modify the parameters of methods that it mocks?  It's certainly easy to modify the return value of the method it mocks, but how about modifying the parameters themselves?  I know it's possible to at least capture and test the mocked parameters using Verifications, but this happens after the fact.</p>
  
  <p>Here is my simplified code:</p>
  
  <pre><code>class Employee{
      Integer id;
      String department;
      String status;
  
      //getters and setters follow
  }
  </code></pre>
  
  <p>The method I want to test:</p>
  
  <pre><code>  public int createNewEmployee() {
          Employee employee = new Employee();
          employee.setDepartment("...");
          employee.setStatus("...");
          //I want to mock employeeDao, but the real DAO assigns an ID to employee on save
          employeeDao.saveToDatabase(employee);
          return employee.getId(); //throws NullPointerException if mocked, because id is null
      }
  </code></pre>