@Test
  public void testListTableNamesByFilterCheckParameter() throws Exception {
    String filter = hive_metastoreConstants.HIVE_FILTER_FIELD_PARAMS + "param1=\"value2\"";
    List<String> tableNames = client.listTableNamesByFilter(DEFAULT_DATABASE, filter, (short)-1);
    Assert.assertEquals("Found tables", 3, tableNames.size());
    Assert.assertTrue(tableNames.contains(testTables[1].getTableName()));
    Assert.assertTrue(tableNames.contains(testTables[2].getTableName()));
    Assert.assertTrue(tableNames.contains(testTables[3].getTableName()));
  }
Test class for IMetaStoreClient API. Testing the Table related functions for metadata
querying like getting one, or multiple tables, and table name lists.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestTablesList.java