Don't use real WebDriver, but WebDriver mock instead just for this test. Since this timeout thing doesn't really affect visual stuff happening in browser, then no need to use real WebDriver and pass commands to selenium server to test timeouts.