title: Mockito 3.6: Using mockStatic in @Before or @BeforeClass with JUnit4
body: <p>Mockito 3.6 supports mocking static methods under a <code>try-with-resources</code> block as explained <a href="https://wttech.blog/blog/2020/mocking-static-methods-made-possible-in-mockito-3.4.0/" rel="noreferrer">here</a>.</p>
  <p>Can someone let me know if static methods are mocked using Powermock in <code>@Before</code> or <code>@BeforeClass</code> can <code>Mockito.mockStatic</code> be used to replace them without an entire rewrite of the test class?</p>