// check the rewrite
assertEquals(wrappedClient.restRequest.getURI(),
URI.create("http://test.linkedin.com/test/getCube"));
assertEquals(wrappedClient.restWireAttrs, restWireAttrs);
RpcRequest rpcRequest = new RpcRequestBuilder(URI.create("d2://HistoryService/getCube")).build();
Map<String, String> rpcWireAttrs = new HashMap<String, String>();
TestTransportCallback<RpcResponse> rpcCallback =
new TestTransportCallback<RpcResponse>();
client.rpcRequest(rpcRequest, new RequestContext(), rpcWireAttrs, rpcCallback);