To validate arguments to methods called on a mock, use the ArgumentCaptor class. This will allow you to extract the arguments into your test method and perform assertions on them.
This example tests a method which updates the name of a user with a given ID. The method loads the user, updates the na...