I’ve been writing Unit Tests with Spock and Groovy on and off for a couple of years now. I’ve often had to check the properties of object argument parameters that are passed to methods on mocked objects. I’ve used a
Spock Argument Constraints vs Argument Capture
![Spock Argument Constraints vs Argument Capture Spock Argument Constraints vs Argument Capture](https://www.adrianmilne.com/wp-content/uploads/2018/05/spock-groovy.png)