Question: what is the difference between the methods and.stub() and and.returnvalue(value)?
Answer: callFake takes a function as a parameter. This allows you to fake the method call and return a value of your desire. ... myMethod can have parameters and can have a return type, but it doesn't matter since stub just intercepts the call and will return null if there is a return type.