Actually use the new mockito version (forgotten previously)
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
- <version>3.1.0</version>
+ <version>${mockito.version}</version>
<scope>test</scope> <!-- TODO: remove scope from parent pom -->
</dependency>
<dependency>
