static Interface stub;
static DummyProtocolAsyncImpl service;
@Before
public void setUp() throws Exception {
service = new DummyProtocolAsyncImpl();
server = new AsyncRpcServer(DummyProtocol.class,
service, new InetSocketAddress("127.0.0.1", 0), 2);
server.start();
client = new AsyncRpcClient(DummyProtocol.class,
NetUtils.getConnectAddress(server.getListenAddress()));