tested the code with latest testng version 7.1.0
<properties>
<!-- testing -->
- <testng.version>6.10</testng.version>
+ <testng.version>7.1.0</testng.version>
</properties>
</project>
\ No newline at end of file
