title: Is there an alternative to RETURNS_DEEP_STUBS for mocking chained methods with Mockito?
body: <p>I have a db service save() method which allows method chaining:</p>
  
  <pre><code>@Service
  public class Service {
  ...
      public Service save(...) {
          ...     
          return this;
      }
  </code></pre>
  
  <p>and this works just great as:</p>
  
  <pre><code>service.save(this).save(that).save(other);
  </code></pre>
  
  <p>When I come to mock it with Mockito though it breaks unless I use</p>
  
  <pre><code>Service serviceMock = mock(Service.class, RETURNS_DEEP_STUBS); 
  </code></pre>
  
  <p>IIUC though, the use of RETURNS_DEEP_STUBS is considered bad.  Is there a better way to mock a class with method call chaining?</p>