title: Mockito 3.4.0 Static Mocking Exception
body: <p>I am getting the following exception when trying to mock the static method.</p>
  <blockquote>
  <p>For SettingsUtility, static mocking is already registered in the
  current thread To create a new mock, the existing static mock
  registration must be deregistered</p>
  </blockquote>
  <pre><code>@Before
  fun setUp() {
      mockStatic(SettingsUtility::class.java) {
          `when` { SettingsUtility.method(app) }.thenReturn { &quot;&quot; }}
  }
  </code></pre>