title: Mock getResourceAsStream( ) method
body: <p>I have a method call like this</p>
  
  <pre><code>class classname
      {
      void somemethod()
      {
      InpuStream someImputStream=classname.class.getResourceAsStream("some string");
      }
      }
  </code></pre>
  
  <p>Is there any way to mock the method call?</p>
  
  <p>Thanks</p>