Test function behavior with mocked dependency
Preconditions (2)
Step 1: Create a test function that mocks the external dependency
Step 2: Call the function under test with the mock in place
Step 3: Verify the function returns expected result based on the mock
Step 4: Ensure the external dependency is not actually called
✅ Expected Result: The function under test returns the expected result using the mock, and no real external calls happen