@Test
public void testHandleTimeout() throws Exception {

    doNothing().when(watchdog, "sendPacket");
    assertEquals(1000, watchdog.getPollTimeout());
    // Successful case increments
    watchdog.handleTimeout();
    assertEquals(4 * 1000, watchdog.getPollTimeout());
    watchdog.handleTimeout();
    assertEquals(4 * 4 * 1000, watchdog.getPollTimeout());
    watchdog.handleTimeout();
    watchdog.pollTimeout = 4 * 4 * 4 * 4 * 4 * 4 * 1000;
    watchdog.handleTimeout();
    assertEquals(4 * 4 * 4 * 4 * 4 * 4 * 1000, watchdog.getPollTimeout());
}