@Test
  public void getAllDatabases() throws Exception {
    Set<String> databases = client.getAllDatabases(null);
    MatcherAssert.assertThat(databases, Matchers.hasItem("default"));
    MatcherAssert.assertThat(databases, Matchers.hasItem(TEST_DATABASE.toLowerCase()));
    assertThat(client.getAllDatabases(TEST_DATABASE.toLowerCase()), Matchers.contains(TEST_DATABASE.toLowerCase()));
  }
Verify that list of databases contains "default" and test database
@throws Exception
standalone-metastore/metastore-tools/tools-common/src/test/java/org/apache/hadoop/hive/metastore/tools/HMSClientTest.java