Verify method behavior only on Java 17 runtime
Preconditions (2)
Step 1: Create a test method annotated with @EnabledOnJre(JRE.JAVA_17)
Step 2: Inside the test method, call the method that behaves differently on Java 17
Step 3: Assert the expected output or behavior specific to Java 17
✅ Expected Result: The test runs and passes only if the runtime is Java 17; otherwise, it is skipped.