adopted for TestNG