@Test
public void testHandleTimeout_errorInitPenalty() throws Exception {

    watchdog.lastPacketReceived = 1;
    watchdog.lastPacketSent = 2;
    assertEquals(0, watchdog.initPenalty);
    try {
        watchdog.handleTimeout();
    } catch (AdVpnThread.VpnNetworkException e) {
        // OK
    }
    assertEquals(200, watchdog.initPenalty);
    for (int i = 1; i < 25; i++) {
        assertEquals(200 * i, watchdog.initPenalty);
        try {
            watchdog.handleTimeout();
        } catch (AdVpnThread.VpnNetworkException e) {
            // OK
        }
    }
    assertEquals(5000, watchdog.initPenalty);
    try {
        watchdog.handleTimeout();
    } catch (AdVpnThread.VpnNetworkException e) {
        // OK
    }
    assertEquals(5000, watchdog.initPenalty);
}