@Test(timeout = 20000L)
public void testAlertClientInterrupt() throws InterruptedException {

    final Main main = new Main(getTestConfig(10000));
    Thread invoker = new Thread(new Runnable() {
            @Override
            public void run() {
                main.invoke(ClientType.ALERT);
            }
        }, "alertclient");
    invoker.setPriority(Thread.MIN_PRIORITY);
    invoker.start();
    Thread.sleep(5000);
    while (invoker.isAlive()) {
        invoker.join(500);
        invoker.interrupt();
    }
}