I\'m trying to mock private static method anotherMethod(). See code below
anotherMethod()
public class Util { public static String method(){ return
If anotherMethod() takes any argument as anotherMethod(parameter), the correct invocation of the method will be:
PowerMockito.doReturn("abc").when(Util.class, "anotherMethod", parameter);