public Connection getConnection(User user) throws IOException {
    return getAsyncConnection(user).toConnection();
  }
Get a assigned Connection to the cluster. this method is thread safe.
@param user assigned user
@return A Connection with assigned user.
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java