Mockito needs the mockito-junit-jupiter module
For Mockito to work with Junit 5, we need to add:
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>2.18.0</version>
<scope>test</scope>
</dependency>
to the parent pom.