@Before
    public void init() {
        server = new BoltServer(port);
        server.start();
        server.addConnectionEventProcessor(ConnectionEventType.CONNECT, serverConnectProcessor);
        server.addConnectionEventProcessor(ConnectionEventType.CLOSE, serverDisConnectProcessor);

        serverUserProcessor.setTimeoutDiscard(false);
        server.registerUserProcessor(serverUserProcessor);

        client = new RpcClient();
        client.addConnectionEventProcessor(ConnectionEventType.CONNECT, clientConnectProcessor);
        client.addConnectionEventProcessor(ConnectionEventType.CLOSE, clientDisConnectProcessor);
        clientUserProcessor.setTimeoutDiscard(false);
        client.registerUserProcessor(clientUserProcessor);
        client.init();
    }
server process timeout test (timeout check in biz thread)

if already timeout waiting in work queue, then discard this request and return timeout exception.
Oneway will not do this.

@author tsui
@version $Id: ServerTimeoutSwitchTest.java, v 0.1 2017-07-25 17:35 tsui Exp $
src/test/java/com/alipay/remoting/rpc/timeout/ServerTimeoutSwitchTest.java