Use dummy objects to satisfy method parameters in unit test
Preconditions (2)
Step 1: Create a dummy object to pass as a parameter to a method that requires an object but does not use it
Step 2: Write a unit test for Calculator.add method that requires a dummy object parameter
Step 3: Call the add method with two integers and the dummy object
Step 4: Verify the add method returns the correct sum
✅ Expected Result: The test passes successfully, confirming the add method works and the dummy object satisfies the parameter requirement without affecting the test