Concept Flow - Mocking and stubbing
Test starts
Create stub/mock
Replace real function with stub/mock
Run code that calls stub/mock
Stub/mock returns controlled value
Test checks output or behavior
Test ends
This flow shows how a stub or mock replaces a real function during a test to control behavior and check results.
