Introduction
Argument matchers help you check if a method was called with certain values during testing. They make tests flexible and clear.
When you want to verify a method was called with any value of a certain type.
When you want to check a method was called with an exact value.
When you want to avoid writing many tests for different input values.
When you want to simplify tests by ignoring some arguments.
When you want to combine exact and flexible checks in one test.