private void setupMetastoreDB(String jdbcUrl) throws SQLException, IOException {
    Connection connection = DriverManager.getConnection(jdbcUrl);
    ClassLoader classLoader = ClassLoader.getSystemClassLoader();
    InputStream inputStream = classLoader.getResourceAsStream("hive-schema-3.1.0.derby.sql");
    connection.setAutoCommit(true);
    try (Reader reader = new InputStreamReader(inputStream)) {
      runScript(connection, reader);
    }
    connection.close();
  }
Starts a TestHiveMetastore with a provided connection pool size.

@param poolSize The number of threads in the executor pool
amoro-common/src/test/java/org/apache/amoro/hive/HMSMockServer.java