@Test(expected = AdVpnThread.VpnNetworkException.class)
public void testSendPacket_error() throws Exception {

    doThrow(new IOException("Cannot send")).when(mockSocket).send(any(DatagramPacket.class));
    watchdog.lastPacketSent = 0;
    watchdog.sendPacket();
}