Mockito 3.6 supports mocking static methods under a try-with-resources block as explained here.
Can someone let me know if static methods are mocked using Powermock in @Before or @BeforeClass can Mockito.mockStatic be used to replace them without an entire rewrite of the test class?