@Test(expected = TransactionTimedOutException.class)
public void testTransactionTimedOutExceptionHandler() throws Exception {
final ExceptionHandler exceptionHandler = FutureUtil.RETHROW_TRANSACTION_EXCEPTION;
final Throwable throwable = new TimeoutException();
exceptionHandler.handleException(throwable);
}
private static final class ExceptionCollector implements ExceptionHandler {
private final List<Throwable> throwables = new ArrayList<Throwable>();