title: Is there any way to do mock argument capturing in Spock
body: <p>I have looked around and tried different things to no avail. The examples out there on the interwebs are few, and IMHO pretty simple. My use case:</p>
  
  <p>(the 'itocNetworkHandler' below is the mock)</p>
  
  <pre><code>when: "we're doing stuff"
      StandardResponse response = cms.doCardStuff("123", "111", order)
  ....
  then: "we get proper calls and response object"
      1 * cms.itocNetworkHandler.doNetworkCall(
              { it instanceof ReplacementRequestRecord
              }, StandardResponseRecord.class) &gt;&gt; record
  </code></pre>
  
  <p>I would like to store away the parameter ('it') to the "doNetworkCall" on the mock. </p>
  
  <p>The reason i want the parameter is because the object i'm testing is supposed to take my in parameters, do stuff, create a new object and pass that one to my mock. I want to make sure that the created object looks the way its supposed to.</p>
  
  <p>Pointers much appreciated.</p>