title: Emma code coverage with JUnit and Powermock
body: <p>I am using JUnit with Powermockito mocking.
  I have to work on a CLI environment with maven or ant.</p>
  
  <pre><code>emma version:      ema-2.0.5312
  powermock version: powermock-mockito-1.5.1-full
  junit version:     junit-4.9
  </code></pre>
  
  <p>When I run junit through the following command, everything works find:</p>
  
  <pre><code>java org.junit.runner.JUnitCore some.package.ClassTest
  </code></pre>
  
  <p>However, when I used emma to check the code coverage:</p>
  
  <pre><code>java emmarun -cp $CLASSPATH -report txt org.junit.runner.JUnitCore some.package.ClassTest
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>1) initializationError(some.pakage.ClassTest)
     java.lang.ClassCastException: org.powermock.modules.junit4.PowerMockRunner cannot be cast to org.junit.runner.Runner
  </code></pre>
  
  <p>Other test classes without using powermock work fine.
  Does anyone have some suggestion to this? thanks in advance.</p>