Test resource locking using @ResourceLock annotation in JUnit
Preconditions (2)
Step 1: Create a test class with two test methods
Step 2: Annotate both test methods with @ResourceLock using the same resource name
Step 3: Run the tests in parallel mode
Step 4: Observe that the tests do not run concurrently on the locked resource
✅ Expected Result: The two test methods run sequentially, not in parallel, because the shared resource is locked by @ResourceLock