public static void main(String[] args) throws Exception {
    SmokeTest test = new SmokeTest();
    conf = MetastoreConf.newMetastoreConf();
    IMetaStoreClient client = new HiveMetaStoreClient(conf);
    test.runTest(client);
  }
This class runs a few simple operations against the server to make sure it runs reasonably.
Even though it is a test its in the main tree because it needs to be deployed with the server
to allow smoke testing once the server is installed.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/SmokeTest.java