@Test
    public void testSyncPreHandle() {
        RequestBody b1 = new RequestBody(1, "hello world sync");
        for (int i = 0; i < invokeTimes; i++) {
            try {
                Object ret = client.invokeSync(addr, b1, 3000);
                logger.warn("Result received in sync: " + ret);
                Assert.assertEquals("test", ret);
            } catch (RemotingException e) {
                String errMsg = "RemotingException caught in testSyncPreHandle!";
                logger.error(errMsg, e);
                Assert.fail(errMsg);
            } catch (InterruptedException e) {
                String errMsg = "InterruptedException caught in testSyncPreHandle!";
                logger.error(errMsg, e);
                Assert.fail(errMsg);
            }
        }
    }
test pre handle usage of UserProcessor

@author xiaomin.cxm
@version $Id: PrehandleTest.java, v 0.1 Jan 7, 2016 1:49:05 PM xiaomin.cxm Exp $
src/test/java/com/alipay/remoting/rpc/prehandle/PrehandleTest.java