Asserting that correct arguments are being passed to the method calls is as important as asserting that the correct method was invoked. PowerMock verifies the argument values using the
equals method. But sometimes, we need some extra flexibility to assert that correct arguments are being passed. We can achieve this by using argument matchers. In this recipe, we will look at the effective use of argument matchers to assert that methods are invoked with correct arguments.
This is another example of how PowerMock does not reinvent the wheel. It simply uses this functionality from the underlining mocking frameworks (EasyMock and Mockito).
We want to add two new methods in