Testing Mock vs Stub
What’s the difference beetween mock and stub?
Stub is an object that holds predefined data and uses it to answer calls during tests. It is used when we cannot or don’t want to involve objects that would answer with real data or have undesirable side effects.