Since 2.1.0, JUnit rule emits stubbing warnings and hints to System output (see also
Use this rule in order to collect multiple verification failures and report at once.
The JUnit rule can be used instead of
Compatible with JUnit 4.4 and higher, this runner adds following behavior: (new since Mockito 2.1.0) Detects unused stubs in the test code.
This Mockito JUnit Runner implementation ignores unused stubs (e.g.
Detects unused stubs and reports them as failures.