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

        client = new RpcClient();
        client.addConnectionEventProcessor(ConnectionEventType.CONNECT, clientConnectProcessor);
        client.addConnectionEventProcessor(ConnectionEventType.CLOSE, clientDisConnectProcessor);
        client.registerUserProcessor(clientUserProcessor);
        client.init();
    }
Codec Test

Test three type serializer [HESSIAN, JAVA, JSON]

note: json need the class have a default constructor

@author jiangping
@version $Id: CodecTest.java, v 0.1 2015-9-7 PM5:00:26 tao Exp $
src/test/java/com/alipay/remoting/rpc/serializer/CodecTest.java