title: Mockito: how to mock setter of a setter?
body: <p>Let's say I've a code like this:</p>
  
  <pre><code>public response MyMethod(Request req)
  {
      String id = req.getFirst().geId();
  }
  </code></pre>
  
  <p>I've mocked the main object <strong>req</strong>: <code>Request reqMock = mock(Request.class);</code></p>
  
  <p>Then I've done something like:</p>
  
  <pre><code>First first = new First();
  first.setId("1")
  req.setFirst(first);
  </code></pre>
  
  <p>How do I keep mocking the members, i.e. <code>getFirst()</code> and then <code>geId()</code></p>
  
  <p>Thanks for helping</p>