Mockito: How to Verify a Method Ran a Specific Number of Times Sometimes, knowing that a method ran just isn't good enough.
Mockito: What Is the Difference Between Mock and Spy? You need to know this if you want to reach your full potential with automated unit testing.
JUnit: Test Exception Conditions With assertThrows() Make sure things go wrong the way they're supposed to go wrong.