Automate a JUnit 5 test using @ExtendWith to register a custom extension
Preconditions (2)
Step 1: Create a test class named 'MyTestWithExtension'
Step 2: Annotate the test class with @ExtendWith(MyCustomExtension.class)
Step 3: Write a test method 'testExample' that asserts true is true
Step 4: Run the test class
✅ Expected Result: The test runs successfully with the custom extension applied, and the assertion passes