title: Powermock not returning correct object static method
body: <p>I am using PowerMock to try and mock a final class with static methods, but whenever my code calls <code>MyClass.getInstance()</code> it returns <code>null</code></p>
  
  <p>In my tests I have annotated the test class</p>
  
  <pre><code>@RunWith(PowerMockRunner.class)
  @PrepareForTest(MyClass.class) 
  </code></pre>
  
  <p>In my method to make the mock I do the following</p>
  
  <pre><code>suppressConstructor(MyClass.class);
  PowerMock.mockStatic(MyClass.class);
  mockClass = PowerMock.createMock(MyClass.class);
  expect(MyClass.getInstance()).andReturn(mockClass);
  </code></pre>
  
  <p>Should <code>PowerMock.createMock</code> create an <code>EasyMock</code> class?</p>
  
  <p>When I call this in my code (<code>MyClass.getInstance()</code>), it always returns <code>null</code> but if I step through the test class the variable <code>mockClass</code> gets instantiated.</p>