@Test(timeout = 5000)
public void testInterrupt() throws Exception {

  final BallThread ballThread = new BallThread();
  final UncaughtExceptionHandler exceptionHandler = mock(UncaughtExceptionHandler.class);
  ballThread.setUncaughtExceptionHandler(exceptionHandler);
  ballThread.setTwin(mock(BallItem.class));
  ballThread.start();
  ballThread.interrupt();
  ballThread.join();
  verify(exceptionHandler).uncaughtException(eq(ballThread), any(RuntimeException.class));
  verifyNoMoreInteractions(exceptionHandler);
}