Most developers have probably heard of mocks, stubs, and spies in the world of test doubles. There is often confusion about the difference between the three and when you want to use them. I am here to help clear things up. Stubs are the simplest form of the three test doubles.
Full article