timeout
parameter to Test annotation sets maximum time test may take
Useful for simple benchmarking, avoiding slow network servers, excesivly long-running tests
Measured in milliseconds
Test that fails if it takes longer than half a second to find all the elements in a document:
@Test(timeout=500) public void retrieveAllElementsInDocument() {
doc.query("//*");
}