Are there any good alternatives to PowerMock?
<p>I'm testing some legacy code and tried PowerMock for mocking static method calls. I quickly found out that it messes with classloaders and it is not the kind of problem I feel qualified to dig into. FYI my problem is similar to <a href="https://code.google.com/p/powermock/issues/detail?id=299" rel="noreferrer">this</a> but solution posted there doesn't work in my case.</p>

<p>Are there any good alternatives to PowerMock that I can try which are capable of mocking statics, compatible with TestNG and are successfully used in some live projects?</p>

<p>I know that the best alternative is testable code but it's not always possible to refactor my current project.</p>