@Test
  public void createDatabaseEmptyName() {
    Assume.assumeTrue(client != null);
    Database db = new Util.DatabaseBuilder(TEST_DATABASE)
        .build();
    db.setName("");
    Throwable exception = Assertions.assertThrows(InvalidObjectException.class,
        () -> client.createDatabase(db));
  }
Creating a database with an empty name should not be allowed
and should throw InvalidObjectException
standalone-metastore/metastore-tools/tools-common/src/test/java/org/apache/hadoop/hive/metastore/tools/HMSClientTest.java