/** * Override this method to throw an exception that is idiomatic for a given test infrastructure. E.g. JUnit4 should * throw an {@link AssertionError} */ protected void throwTimeoutException(String message, Exception lastException) { throw new TimeoutException(message, lastException); }