Stub: a dummy piece of code that lets the test run, but you don't care what happens to it.
Substitutes for real working code. Mock: a dummy piece of code that you verify is called correctly as part of the test. Substitutes for real working code.
https://www.linkedin.com/pulse/what-difference-between-stub-mock-virtual-service-wojciech-bulaty/