Class loading collision between Robolectric and Powermock
问题 I'm trying to write a test that needs both Robolectric 2.2 and PowerMock , as the code under test depends on some Android libraries and third party libraries with final classes that I need to mock. Given that I'm forced to use the Robolectric test runner through: @RunWith(RobolectricTestRunner.class) ...I cannot use the PowerMock test runner, so I'm trying to go with the PowerMock java agent alternative, without luck so far. I have setup everything according to this guide but I'm facing a