> When writing a custom return value for an interaction, is there any
> way to access the actual parameter that was used?
The method arguments are passed to the closure. Therefore, Groovy allows you to do things like:
foo.bar(_, _) >> { args -> args[0] }
foo.bar(_, _) >> { one, two -> one }
Cheers,
Peter