public boolean tableExists(String dbName, String tableName) {
        try (Timer ignored = Tracers.watchScope(EXTERNAL, "HMS.tableExists")) {
            return callRPC("tableExists", String.format("Failed to get table exists [%s.%s]", dbName, tableName),
                    dbName, tableName);
        }
    }
@Test
    public void testTableExists(@Mocked HiveMetaStoreClient metaStoreClient) throws TException {
        new Expectations() {
            {
                metaStoreClient.tableExists("hive_db", "hive_table");
                result = true;
            }
        };
        HiveConf hiveConf = new HiveConf();
        hiveConf.set(MetastoreConf.ConfVars.THRIFT_URIS.getHiveName(), "thrift://127.0.0.1:90300");
        HiveMetaClient client = new HiveMetaClient(hiveConf);
        Assert.assertTrue(client.tableExists("hive_db", "hive_table"));
    }