@Test
    public void testSync() {
        final int timeout[] = { max_timeout / 2, max_timeout / 3 };
        for (int i = 0; i <= 1; ++i) {
            final int j = i;
            new Thread() {
                @Override
                public void run() {
                    sync(client, null, timeout[j]);
                }
            }.start();
        }
        try {
            Thread.sleep(max_timeout * 2);
        } catch (InterruptedException e) {
            logger.error("", e);
        }
        System.out.println(serverUserProcessor
            .getInvokeTimesEachCallType(RequestBody.InvokeType.SYNC));
        Assert.assertEquals(2,
            serverUserProcessor.getInvokeTimesEachCallType(RequestBody.InvokeType.SYNC));
    }
the second request will timeout in work queue
src/test/java/com/alipay/remoting/rpc/timeout/ServerTimeoutSwitchTest.java