Verify addition method returns correct sum
Preconditions (2)
Step 1: Create a class Calculator with a method add(int a, int b) that returns the sum of a and b
Step 2: Create a JUnit test class CalculatorTest
Step 3: Write a test method testAdd that calls add(2, 3)
Step 4: Assert that the result is 5
✅ Expected Result: The test passes confirming that add(2, 3) returns 5