This chapter provided an overview of test doubles with examples. The following topics covered dummy, stub, mock, fake, and spy. This chapter is a prerequisite for Mockito.
The next chapter will cover the Mockito framework and its advanced uses. Mockito is a mocking framework for Java. It provides the API for mock, spy, and stub creation.