Idea from here http://stackoverflow.com/questions/30778485/whats-the-correct-way-to-test-runnables-that-can-not-be-directly-seen-by-a-ju/30789208#30789208 Handle failures in threads running code that cannot be modified.