@Test(expected = MetaException.class)
  public void testDropDatabaseNullName() throws Exception {
    // Missing database in the query
    client.dropDatabase((String) null);
  }
This test creates and queries a database and then drops it. Good for testing the happy path.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/client/TestDatabases.java