As mentioned on some articles like Simplifying Junit, Mockito And PowerMock, I cannot use PowerMock in JUnit5.
As I cannot downgrade my JUnit version to 4 and need to stick with JUnit5, how can I use PowerMock in JUnit5 to test static methods? Or if it is not possible, what should I use? I tried MockStatic, but I am not sure if it is a proper way to test static method. What would you suggest?