O'Reilly logo
  • Jennifer Hong thinks this is interesting:

Test the SQLException condition. Create a test class and pass the stubbed DAO to the service implementation.

From

Cover of Mockito Essentials

Note

this stub doesn't test any code! This unit test is useless.