Mockito

DispatcherServlet
If testing using a Dispatcher servlet

Example test
This example demostrates:
 * when(...)
 * doThrow(...) needed to void return methods
 * Argument Capture

Verify

 * taken from http://mockito.googlecode.com/svn/tags/latest/javadoc/org/mockito/Mockito.html#4