Bump mockito-core from 4.0.0 to 4.2.0 (#3201)
Bump mockito-core from 4.0.0 to 4.2.0 (#3201)

Summary:
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.0.0 to 4.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/mockito/mockito/releases">mockito-core's releases</a>.</em></p>
<blockquote>
<h2>v4.2.0</h2>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h4>4.2.0</h4>
<ul>
<li>2021-12-16 - <a href="https://github.com/mockito/mockito/compare/v4.1.0...v4.2.0">21 commit(s)</a> by Liam Miller-Cushon, Rafael Winterhalter, Tim van der Lippe, dependabot[bot], temp-droid</li>
<li>Update ByteBuddy to 1.12.4 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2515">https://github.com/facebook/flipper/issues/2515</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2515">mockito/mockito#2515</a>)</li>
<li>Bump kotlinVersion from 1.6.0 to 1.6.10 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2514">https://github.com/facebook/flipper/issues/2514</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2514">mockito/mockito#2514</a>)</li>
<li>Add DoNotMock mention to main JavaDoc [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2512">https://github.com/facebook/flipper/issues/2512</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2512">mockito/mockito#2512</a>)</li>
<li>Replace ExpectedException in MissingInvocationInOrderCheckerTest [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2511">https://github.com/facebook/flipper/issues/2511</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2511">mockito/mockito#2511</a>)</li>
<li>Update Gradle to version 7.3.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2509">https://github.com/facebook/flipper/issues/2509</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2509">mockito/mockito#2509</a>)</li>
<li>Fixes <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2497">https://github.com/facebook/flipper/issues/2497</a>: Throw exception on invalid matchers for <code>mockStatic</code> [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2506">https://github.com/facebook/flipper/issues/2506</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2506">mockito/mockito#2506</a>)</li>
<li>Make sure interface types are initialized before inline mocking to avoid blocking code of static initializers. [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2505">https://github.com/facebook/flipper/issues/2505</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2505">mockito/mockito#2505</a>)</li>
<li>Bump org.eclipse.osgi from 3.17.0 to 3.17.100 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2504">https://github.com/facebook/flipper/issues/2504</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2504">mockito/mockito#2504</a>)</li>
<li>Bump com.diffplug.spotless from 6.0.2 to 6.0.4 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2501">https://github.com/facebook/flipper/issues/2501</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2501">mockito/mockito#2501</a>)</li>
<li>Bump com.diffplug.spotless from 6.0.1 to 6.0.2 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2498">https://github.com/facebook/flipper/issues/2498</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2498">mockito/mockito#2498</a>)</li>
<li>ArgumentMatchers not working for Mockito.mockStatic [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2497">https://github.com/facebook/flipper/issues/2497</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2497">mockito/mockito#2497</a>)</li>
<li>Bump versions.bytebuddy from 1.12.2 to 1.12.3 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2496">https://github.com/facebook/flipper/issues/2496</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2496">mockito/mockito#2496</a>)</li>
<li>Bump com.diffplug.spotless from 6.0.0 to 6.0.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2495">https://github.com/facebook/flipper/issues/2495</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2495">mockito/mockito#2495</a>)</li>
<li>Remove the recommendation to import ArgumentMatchers methods using Mockito [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2494">https://github.com/facebook/flipper/issues/2494</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2494">mockito/mockito#2494</a>)</li>
<li>Bump versions.junitJupiter from 5.8.1 to 5.8.2 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2491">https://github.com/facebook/flipper/issues/2491</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2491">mockito/mockito#2491</a>)</li>
<li>Bump junit-platform-launcher from 1.8.1 to 1.8.2 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2490">https://github.com/facebook/flipper/issues/2490</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2490">mockito/mockito#2490</a>)</li>
<li>Fix typo 'DoNoMock' should be 'DoNotMock' [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2487">https://github.com/facebook/flipper/issues/2487</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2487">mockito/mockito#2487</a>)</li>
<li>Bump biz.aQute.bnd.gradle from 6.0.0 to 6.1.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2486">https://github.com/facebook/flipper/issues/2486</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2486">mockito/mockito#2486</a>)</li>
<li>Bump biz.aQute.bnd.builder from 6.0.0 to 6.1.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2485">https://github.com/facebook/flipper/issues/2485</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2485">mockito/mockito#2485</a>)</li>
<li>Bump versions.bytebuddy from 1.12.1 to 1.12.2 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2484">https://github.com/facebook/flipper/issues/2484</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2484">mockito/mockito#2484</a>)</li>
<li>Bump google-java-format from 1.12.0 to 1.13.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2483">https://github.com/facebook/flipper/issues/2483</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2483">mockito/mockito#2483</a>)</li>
<li>Add annotation to mark a type as DoNotMock [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/1833">https://github.com/facebook/flipper/issues/1833</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/1833">mockito/mockito#1833</a>)</li>
</ul>
<h2>v4.1.0</h2>
<h1>Major new feature: <code>DoNotMock</code></h1>
<p>You can now mark classes/interfaces with <code>org.mockito.DoNotMock</code> to disallow mocking with Mockito. For more information, see our documentation: <a href="https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/DoNotMock.html">https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/DoNotMock.html</a></p>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
<h4>4.1.0</h4>
<ul>
<li>2021-11-19 - <a href="https://github.com/mockito/mockito/compare/v4.0.0...v4.1.0">20 commit(s)</a> by Lars Vogel, Mikaël Francoeur, S.YAMAMOTO, Tim van der Lippe, dependabot[bot]</li>
<li>Disable memory test [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2480">https://github.com/facebook/flipper/issues/2480</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2480">mockito/mockito#2480</a>)</li>
<li>Bump appcompat from 1.3.1 to 1.4.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2477">https://github.com/facebook/flipper/issues/2477</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2477">mockito/mockito#2477</a>)</li>
<li>Bump kotlinVersion from 1.5.31 to 1.6.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2474">https://github.com/facebook/flipper/issues/2474</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2474">mockito/mockito#2474</a>)</li>
<li>Bump versions.bytebuddy from 1.12.0 to 1.12.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2472">https://github.com/facebook/flipper/issues/2472</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2472">mockito/mockito#2472</a>)</li>
<li>Bump com.diffplug.gradle.spotless from 4.5.1 to 6.0.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2471">https://github.com/facebook/flipper/issues/2471</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2471">mockito/mockito#2471</a>)</li>
<li>Bump versions.bytebuddy from 1.11.22 to 1.12.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2469">https://github.com/facebook/flipper/issues/2469</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2469">mockito/mockito#2469</a>)</li>
<li>Bump versions.errorprone from 2.9.0 to 2.10.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2466">https://github.com/facebook/flipper/issues/2466</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2466">mockito/mockito#2466</a>)</li>
<li>Bump auto-service from 1.0 to 1.0.1 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2463">https://github.com/facebook/flipper/issues/2463</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2463">mockito/mockito#2463</a>)</li>
<li>Bump actions/checkout from 2.3.5 to 2.4.0 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2462">https://github.com/facebook/flipper/issues/2462</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2462">mockito/mockito#2462</a>)</li>
<li>Fixes <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2460">https://github.com/facebook/flipper/issues/2460</a>: Remove a sentence commits to a particular version [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2461">https://github.com/facebook/flipper/issues/2461</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2461">mockito/mockito#2461</a>)</li>
<li>Clarify Javadoc of RETURNS_SMART_NULLS, default answer in Mockito 4.0.0? [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2460">https://github.com/facebook/flipper/issues/2460</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2460">mockito/mockito#2460</a>)</li>
<li>Bump versions.bytebuddy from 1.11.21 to 1.11.22 [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2458">https://github.com/facebook/flipper/issues/2458</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2458">mockito/mockito#2458</a>)</li>
<li>Updated readme with the latest Mockito version [(<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2456">https://github.com/facebook/flipper/issues/2456</a>)](<a href="https://github-redirect.dependabot.com/mockito/mockito/pull/2456">mockito/mockito#2456</a>)</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/mockito/mockito/commit/8319cc509e6c5cbfd122d1faf4b79526b4911d93"><code>8319cc5</code></a> Update ByteBuddy to 1.12.4 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2515">https://github.com/facebook/flipper/issues/2515</a>)</li>
<li><a href="https://github.com/mockito/mockito/commit/27e6df6ca07a76fe46a9faa79bfe68a9f19b8017"><code>27e6df6</code></a> Bump kotlinVersion from 1.6.0 to 1.6.10 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2514">https://github.com/facebook/flipper/issues/2514</a>)</li>
<li><a href="https://github.com/mockito/mockito/commit/95bc5b2269f86852d69081c3a481cb99cb3c1143"><code>95bc5b2</code></a> Add DoNotMock mention to main JavaDoc (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2512">https://github.com/facebook/flipper/issues/2512</a>)</li>
<li><a href="https://github.com/mockito/mockito/commit/b91bd29be1925a76ec278c8b9536f6092390fc6d"><code>b91bd29</code></a> Replace ExpectedException in MissingInvocationInOrderCheckerTest (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2511">https://github.com/facebook/flipper/issues/2511</a>)</li>
<li><a href="https://github.com/mockito/mockito/commit/44ba00f38c443b5d3125ce0f26acb76b8d50fe8e"><code>44ba00f</code></a> Fixes <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2497">https://github.com/facebook/flipper/issues/2497</a>: Throw exception on invalid matchers for <code>mockStatic</code> (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2506">https://github.com/facebook/flipper/issues/2506</a>)</li>
<li><a href="https://github.com/mockito/mockito/commit/582d8903c804a62b8984303a0a4016bb62262fa1"><code>582d890</code></a> Bump com.diffplug.spotless from 6.0.2 to 6.0.4 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2501">https://github.com/facebook/flipper/issues/2501</a>)</li>
<li><a href="https://github.com/mockito/mockito/commit/44aec663af01827354bfa2d1eab185e2b7b7e274"><code>44aec66</code></a> Update Gradle to version 7.3.1 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2509">https://github.com/facebook/flipper/issues/2509</a>)</li>
<li><a href="https://github.com/mockito/mockito/commit/a82d5c3f7e5747bc8b9fcea10a25aad7211351ca"><code>a82d5c3</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2505">https://github.com/facebook/flipper/issues/2505</a> from mockito/initialize-interfaces</li>
<li><a href="https://github.com/mockito/mockito/commit/463578069863a7880953b14c509f9bdd71008fc9"><code>4635780</code></a> Make sure interface types are initialized before inline mocking to avoid bloc...</li>
<li><a href="https://github.com/mockito/mockito/commit/dbcbb3f9df32e35eb32587ef30b353fe47056a34"><code>dbcbb3f</code></a> Bump org.eclipse.osgi from 3.17.0 to 3.17.100 (<a href="https://github-redirect.dependabot.com/mockito/mockito/issues/2504">https://github.com/facebook/flipper/issues/2504</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v4.0.0...v4.2.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.mockito:mockito-core&package-manager=gradle&previous-version=4.0.0&new-version=4.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: https://github.com/facebook/flipper/pull/3201

Reviewed By: timur-valiev

Differential Revision: D33348291

Pulled By: nikoant

fbshipit-source-id: 5574ab4c5551d32efadf5554126105e9b6b9b907

facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper