This session shows the features and optimal ways to generated mocks, stubs, and spies with Mockito. Find out when tools like Mockito are useful and how best to employ them to diagnose issues in your code. Features covered will include creating mocks and stubs, mocking final methods and classes, mocking static methods, and spying on existing classes. It will also cover when NOT to use mocks and stubs, so you don't waste time testing the wrong things.
![](https://i.ytimg.com/vi/kSXKRgYTkHk/maxresdefault.jpg)