title: Standard way to capture arguments in JMock
body: <p>Is there an <strong>already built-in, standard</strong> way in JMock to capture method arguments to test the argument object later on with standard JUnit functionality?</p>
  
  <p>Something like</p>
  
  <pre><code>final CapturedContainer&lt;SimpleMailMessage&gt;capturedArgumentContainer = new ...
  context.checking(new Expectations() {{
      oneOf(emailService.getJavaMailSender()).send(
         with(captureTo(capturedArgumentContainer)));
  }});
  
  assertEquals("helloWorld", capturedArgumentContainer.getItem().getBody());
  </code></pre>
  
  <p><em><code>CapturedContainer</code> and <code>captureTo</code> do not exist &#8212; they are what I'm asking for.</em></p>
  
  <p>Or do I need to implement this on my own?</p>