static RpcHandler rpcHandler;
@BeforeClass
public static void setUp() throws Exception {
TransportConf conf = new TransportConf(new SystemPropertyConfigProvider());
rpcHandler = new RpcHandler() {
@Override
public void receive(TransportClient client, byte[] message, RpcResponseCallback callback) {
String msg = new String(message, Charsets.UTF_8);
String[] parts = msg.split("/");
if (parts[0].equals("hello")) {