title: Catch the method arguments in test
body: <p>In my test, InjectedClass is mocked, as it is accessing external resources (see code below).<br>
  I'm trying to catch arguments passed into <code>injected.method2</code>.<br>
  I'm using <a href="https://pub.dev/packages/mockito" rel="nofollow noreferrer">mockito</a>, but I cannot seem to find anything that I can use. There is &quot;Then&quot; mocks and &quot;verify&quot; tests, these I cannot use.</p>
  <p>Is there any method to catch the incoming argument in a mocked call?</p>
  <pre><code>class RealClass() {
      InjectedClass injected;
  
      RealClass(this.injected);
  
      void method1(argument) {      
        var newArgument  = change(argument);
        injected.method2(newArgument);
      }
  }
  </code></pre>