title: jMockit: How to expect constructor calls to Mocked objects?
body: <p>I am unit-testing a method performing some serialization operations. I intend to mock the serialization logic. The code is as below:</p>
  
  <pre><code>ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));
  </code></pre>
  
  <p>I have created the following mock objects:</p>
  
  <pre><code>@Mocked FileInputStream mockFIS;
  
  @Mocked BufferedInputStream mockBIS;
  
  @Mocked ObjectInputStream mockOIS;
  </code></pre>
  
  <p>I have setup a <code>NonStrictExpectations()</code> block where I want to expect the above constructor calls.</p>
  
  <p>Any ideas on how I can achieve this?</p>