I\'m trying to mock private static method anotherMethod(). See code below
public class Util {
public static String method(){
return
I'm not sure what version of PowerMock you are using, but with the later version, you should be using @RunWith(PowerMockRunner.class)
@PrepareForTest(Util.class)
Saying this, I find using PowerMock to be really problematic and a sure sign of a poor design. If you have the time/opportunity to change the design, I would try and do that first.