title: Unable to Mock Optional class of java 8
body: <p>I am unable to mock the Option class.</p>
  
  <p>My pseudo-code is:</p>
  
  <pre><code>PowerMockito.when(stream.findAny()).thenReturn("Mock Of Optional class");
  </code></pre>
  
  <p>But every time I run this code - I am receiving <code>Optional.empty</code>.</p>
  
  <p>I am using 1.5 version of PowerMock</p>