private BlockingInterface stub;
private DummyProtocolBlockingImpl service;
@Before
public void setUp() throws Exception {
service = new DummyProtocolBlockingImpl();
server = new BlockingRpcServer(DummyProtocol.class, service,
new InetSocketAddress("127.0.0.1", 0), 2);
server.start();
client = new BlockingRpcClient(DummyProtocol.class,
NetUtils.getConnectAddress(server.getListenAddress()));