public void startServer() {
            server = new RpcServer(ip, PortScan.select());
            server.registerUserProcessor(new SyncUserProcessor<RequestBody>() {
                @Override
                public Object handleRequest(BizContext bizCtx, RequestBody request)
                                                                                   throws Exception {
                    logger.warn("Request received:" + request);
                    return "hello world!";
                }

                @Override
                public String interest() {
                    return String.class.getName();
                }

                @Override
                public Executor getExecutor() {
                    return null;
                }

            });
            server.start();
        }
@author jiangping
@version $Id: BadServerIpTest.java, v 0.1 2015-12-3 PM5:01:30 tao Exp $
src/test/java/com/alipay/remoting/rpc/exception/BadServerIpTest.java