@Test
public void testProxyAddress() throws Exception {

  Server server = null;
  TestRpcService proxy = null;
  try {
    server = setupTestServer(conf, -1);
    // create a client
    proxy = getClient(addr, conf);
    assertEquals(addr, RPC.getServerAddress(proxy));
  } finally {
    stop(server, proxy);
  }
}