@Override
    public Database filterDatabase(Database dataBase) throws NoSuchObjectException {
      if (blockResults) {
        throw new NoSuchObjectException("Blocked access");
      }
      return dataBase;
    }
Test the filtering behavior at HMS client and HMS server. The configuration at each test
changes, and therefore HMS client and server are created for each test case
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestFilterHooks.java