title: Powermockito with Java 8
body: <p>I am using powermockito to mock static methods with params in Java 7. Recently started migrating to Java 8. Post migration the powermockito stopped mocking the static methods and started calling the original method. </p>
  
  <h2>Pom.xml</h2>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.powermock&lt;/groupId&gt;
      &lt;artifactId&gt;powermock-api-mockito&lt;/artifactId&gt;
      &lt;version&gt;1.6.5&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.powermock&lt;/groupId&gt;
      &lt;artifactId&gt;powermock-module-junit4-rule-agent&lt;/artifactId&gt;
      &lt;version&gt;1.6.5&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.javassist&lt;/groupId&gt;
      &lt;artifactId&gt;javassist&lt;/artifactId&gt;
      &lt;version&gt;3.18.2-GA&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;        
  &lt;/dependency&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>Test class
  using spring runner with PowerMockRule
  @RunWith(SpringJUnit4ClassRunner.class)
  
  @Rule
  public PowerMockRule rule = new PowerMockRule(); 
  
  Below is the code used for mock/stubbing the static..
  
  PowerMockito.stub(PowerMockito.method(ABCHelper.class, "prepareResult",Arg1.class,Arg2.class,Arg3.class,Arg4.class)).toReturn(mockedReturnedObject);
  </code></pre>
  
  <p>Can somebody please help me with this issue?</p>