1package test.timeout;
2
3import org.testng.annotations.Test;
4
5public class TestTimeOutSampleTest {
6
7    @Test
8    public void timeoutTest() {
9        try {
10            Thread.sleep(2_000);
11        } catch (InterruptedException handled) {
12            Thread.currentThread().interrupt();
13        }
14    }
15}
16