TimeoutWatchdog { synchronized void stop() { if (cleanupRunnable != null) { handler.removeCallbacks(cleanupRunnable); } cleanupRunnable = null; connectionTimeoutMs = -1; } TimeoutWatchdog();   }
@Test public void stopOnStoppedWatchdogDoesNothing() { watchdog.stop(); ShadowLooper.runUiThreadTasksIncludingDelayedTasks(); verifyZeroInteractions(webSocket); }