}
}
};
ErrorHolderThread other = new ErrorHolderThread(runnable);
other.start();
other.join();
// we should get an error here
assertNotNull("Should get access restriction exception.", other.getError());
RuntimeException re = assertInstanceOf(other.getError(), RuntimeException.class);
Throwable cause = re.getCause();
assertNotNull(cause);