I have a few private static final fields in the class I want to test. Like follows
public class ClassToTest{
....
private static final Myclass myclass = MyClassFactory.getMyClass(type.firstType);
....
}
The type is a enum in the MyClassFactory. That factory do is it initialize object according to type passed and return.
My question is does powermock support this and if so how to do this.