jayway/powermock — pull request #5 by BurntBrunch (2014-10-15 23:59:03+00:00)
Title: Flaky tests

When running PowerMock tests in your CI system, we discovered a few tests that would fail intermittently, attached diffs fix the flakiness (I see you found one of them too).

Additionally, one of the tests has an implicit assumption that it runs under Surefire, so we had to get rid of that as well (we use buck).

We don't run the full set of tests (just the junit (rule|runner) + mockito + (objenesis|xstream) combos), so there are likely other issues remaining.

Lastly, I don't know of TestNG makes any guarantees on the method execution order, so I didn't fix the static initializer testng version as well.