title: java.lang.IllegalArgumentException: Not a mock: java.lang.Class on PowerMock and EasyMock
body: <p>I have a test case using PowerMock to test on static method from Math, as</p>
  
  <pre><code>@RunWith(PowerMockRunner.class)
  @PrepareForTest( { Math.class })
  public class Test{
      @Test
          public void test2(){
              PowerMockito.mockStatic(Math.class);
              EasyMock.expect(Math.abs(-123)).andReturn(1);
              EasyMock.replay(Math.class);
              long returns = Math.abs(-123);
              EasyMock.verify(Math.class);
              org.junit.Assert.assertEquals(1,returns);
          }
  }
  </code></pre>
  
  <p>My pom.xml looks as</p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
              &lt;version&gt;${mockito.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.easymock&lt;/groupId&gt;
              &lt;artifactId&gt;easymock&lt;/artifactId&gt;
              &lt;version&gt;3.3.1&lt;/version&gt;
          &lt;/dependency&gt;
          &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.2&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&lt;/artifactId&gt;
              &lt;version&gt;1.6.2&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>And I got error as</p>
  
  <pre><code>java.lang.IllegalArgumentException: Not a mock: java.lang.Class
      at org.easymock.internal.MocksControl.getControl(MocksControl.java:175)
      at org.easymock.EasyMock.getControl(EasyMock.java:2130)
      at org.easymock.EasyMock.replay(EasyMock.java:2032)
  </code></pre>
  
  <p>This is the first time I'm using PowerMock, I just want to try to test static method, and I Choose Java Math class to test. I think I have done all the parts in the instructions from <a href="https://code.google.com/p/powermock/wiki/MockStatic" rel="nofollow">https://code.google.com/p/powermock/wiki/MockStatic</a></p>
  
  <p>What's wrong with my test case?</p>