title: Spock- Capture method arguments in private method call of class under test
body: <p>I am trying to test my Service class below</p>
  
  <pre class="lang-java prettyprint-override"><code>@Service
  @RequiredArgsConstructor(onConstructor = @__(@Autowired))
  public class TaskTemplateService {
    @NonNull
    TaskTemplateRepository taskTemplateRepository;
  
    public void doStuff() {
      List&lt;MyObject&gt; list;
      doOtherStuff(list)
    }
  
    private void doOtherStuff(List &lt;MyObject&gt;) {
      //do stuff
    }
  }
  </code></pre>
  
  <p>When I am testing the real TaskTemplate, how can I capture what is passed to doOtherStuff?</p>