Verify that JUnit test instance lifecycle is per class
Preconditions (2)
Step 1: Create a test class annotated with @TestInstance(Lifecycle.PER_CLASS)
Step 2: Add a non-static field counter initialized to 0
Step 3: Add two test methods that increment the counter by 1
Step 4: Run the test class
Step 5: Observe the value of the counter after each test method
✅ Expected Result: The counter value should be 1 after the first test and 2 after the second test, showing the same test instance is used for both tests