title: IllegalStateException complaining PowerMockRule being loaded by powermock classloader rather than system classloader
body: <pre><code>@RunWith(PowerMockRunner.class)
  @PrepareForTest(StaticMethodsHolder.class)
  
  public class MockNTestStaticMethodsHolder {
  
    @Rule public PowerMockRule rule = new PowerMockRule();
  
    @Test public void staticSvcClientMethod () {
  
      // blah blah blah
      mockstatic (StaticMethodsHolder.class);
  
      expect (StaticMethodsHolder.TomBradyIsStillTheBest()).andReturn(UNQUESTIONABLY);
      expect (StaticMethodsHolder.NEPatriotsStillTheBest()).andReturn(MAYBE);
      expect (StaticMethodsHolder.NEPatriotsLiiWereIdiots()).andReturn(TOTALLY);
      expect (StaticMethodsHolder.NEPatriotsWinsLiii()).andReturn(RU_KIDDING_ME);
  
    }
  
  }
  </code></pre>
  
  <p>Maven dependencies/properties in the following order:</p>
  
  <ol>
  <li>powermock-version 1.6.6</li>
  <li>easymock-version 3.4</li>
  <li>easymock</li>
  <li>powermock-module-junit4</li>
  <li>powermock-api-easymock</li>
  <li>powermock-module-junit4-rule-agent
  (removing this causes constructor issues)</li>
  <li>powermock-module-junit4-rule
  (removing this dependency has no effect)</li>
  <li>powermock-classloading-xstream</li>
  </ol>
  
  <p>Runtime error:</p>
  
  <pre><code>java.lang.IllegalStateException PowerMockRule can only be used
  with the system classloader but was loaded by
  org.powermock.core.classloader.MockClassLoader.
  </code></pre>
  
  <p>PowerMock is biting is own tail. It wants to use its own classloader, but the JVM says PowerMockRule must be loaded by system's.</p>
  
  <p>What can I do to resolve this?</p>