TransportAddress httpAddress() {
    Preconditions.checkState(isStarted, "node was not started");

    NodesInfoResponse response =  node.client().admin().cluster().prepareNodesInfo()
            .execute().actionGet();
    if (response.getNodes().size() != 1) {
      throw new IllegalStateException("Expected single node but got "
              + response.getNodes().size());
    }
    NodeInfo node = response.getNodes().get(0);
    return node.getInfo(HttpInfo.class).address().boundAddresses()[0];
  }
Returns current address to connect to with HTTP client.
@return hostname/port for HTTP connection
criteria/elasticsearch/test/org/immutables/criteria/elasticsearch/EmbeddedElasticsearchNode.java