MockitoJUnitRunner gives you automatic validation of framework usage, as well as an automatic initMocks(). The automatic validation of framework usage is actually worth having. It gives you better reporting if you make one of these mistakes. You call the static when method, but don't complete the stubbing with a matching thenReturn, thenThrow or then. (Error 1 in the code below) You call verify on
{{#tags}}- {{label}}
{{/tags}}