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