# Mockito v5.22.0 - Product: Mockito (https://whatsnew.fyi/product/mockito) - Vendor: Mockito - Date: 2026-02-27 - Version: v5.22.0 - Original notes: https://github.com/mockito/mockito/releases/tag/v5.22.0 - Permalink: https://whatsnew.fyi/product/mockito/releases/v5.22.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- - **fixed** — Avoid mocking of internal static utilities - **fixed** — Static mocking of UUID.class corrupted under JDK 25 - **added** — Add core API to enable Kotlin singleton mocking - **changed** — Clarify RETURNS_MOCKS behavior with sealed abstract enums (Java 15+) *Changelog generated by [Shipkit Changelog Gradle Plugin](https://github.com/shipkit/shipkit-changelog)* ###### 5.22.0 - 2026-02-27 - [6 commit(s)](https://github.com/mockito/mockito/compare/v5.21.0...v5.22.0) by Joshua Selbo, NiMv1, Rafael Winterhalter, dependabot[bot], eunbin son - Avoid mocking of internal static utilities [(#3785)](https://github.com/mockito/mockito/pull/3785) - Bump graalvm/setup-graalvm from 1.4.4 to 1.4.5 [(#3780)](https://github.com/mockito/mockito/pull/3780) - Static mocking of UUID.class corrupted under JDK 25 [(#3778)](https://github.com/mockito/mockito/issues/3778) - Bump actions/upload-artifact from 5 to 6 [(#3774)](https://github.com/mockito/mockito/pull/3774) - docs: clarify RETURNS_MOCKS behavior with sealed abstract enums (Java 15+) [(#3773)](https://github.com/mockito/mockito/pull/3773) - Add tests for Sets utility class [(#3771)](https://github.com/mockito/mockito/pull/3771) - Add core API to enable Kotlin singleton mocking [(#3762)](https://github.com/mockito/mockito/pull/3762) - Stubbing Kotlin `object` singletons [(#3652)](https://github.com/mockito/mockito/issues/3652) - Incorrect documentation for RETURNS_MOCKS [(#3285)](https://github.com/mockito/mockito/issues/3285)