News for hackers. Stuff that matters.
Re:Mockito 2.1.0 by LgWoodenBadger on Monday October 03, 2016 @12:43PM (#12628998)
FWIW, you don't do that with Mockito either, in Java land.

Mockito will happily use the existing type definition of your dependency, provided that the class declaration is not final (i.e. can't be extended).

Re:Mockito 2.1.0 by raphw on Monday October 03, 2016 @04:24PM (#12631011)
This is actually not a requirement anymore. Mockito 2 can mock final types and methods.