title: Easy way to mock chained method calls in Easymock
body: <p>Is there a simple way to mock this call:</p>
  
  <pre><code>objectA.getB().getC();
  </code></pre>
  
  <p>right now the way I do this is:</p>
  
  <pre><code>A mockA = EasyMock.createMock(A.class);
  B mockB = EasyMock.createMock(B.class);
  C mockC = EasyMock.createMock(C.class);
  
  expect(mockA.getB()).andReturn(mockB);
  expect(mockB.getC()).andReturn(mockC);
  </code></pre>
  
  <p>This is a bit of an overkill since all I care is to get mockC. Is there an easier way to do it?</p>