title: Can not convert from Class<PowerMockRunner> to Class<? extends Runner>
body: <p>I am trying to write Unit test cases using power mockito. </p>
  
  <p>When using annotations <code>@RunWith(PowerMockRunner.class)</code> I am getting the following compilation error:-</p>
  
  <pre><code>TypeMismatch: cannot convert from Class&lt;PowerMockRunner&gt; to Class&lt;? extends Runner&gt;
  </code></pre>
  
  <p>Here is the code snippet. Using junit 4.8.1 and power mock 1.6.2. </p>
  
  <pre><code>import org.junit.Before;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.mockito.Mockito;
  import org.powermock.api.mockito.PowerMockito;
  import org.powermock.modules.junit4.PowerMockRunner;
  
  @RunWith(PowerMockRunner.class)
  public class XXXTest {
      @Test
      public void testOne() {
          if (true)
              System.out.println("Success");
      }
  }
  </code></pre>