Verify assertSame and assertNotSame behavior in JUnit
Preconditions (2)
Step 1: Create two variables referencing the same object instance
Step 2: Use assertSame to verify both variables point to the same object
Step 3: Create two variables referencing different object instances with same content
Step 4: Use assertNotSame to verify these variables do not point to the same object
✅ Expected Result: assertSame passes when both variables reference the same object; assertNotSame passes when variables reference different objects