@Override
  public String getSQLListOfSchemas( DatabaseMeta databaseMeta ) {
    String databaseName = getDatabaseName();
    if ( databaseMeta != null ) {
      databaseName = databaseMeta.environmentSubstitute( databaseName );
    }
    return "SELECT SCHEMA_NAME AS \"name\" FROM " + databaseName + ".INFORMATION_SCHEMA.SCHEMATA";
  }
@Test
  public void testGetSQLListOfSchemasWithParameterNull() {
    SnowflakeHVDatabaseMeta snowflakeHVDatabaseMeta = spy( new SnowflakeHVDatabaseMeta() );
    String databaseName = UUID.randomUUID().toString();
    doReturn( databaseName ).when( snowflakeHVDatabaseMeta ).getDatabaseName();

    String result = snowflakeHVDatabaseMeta.getSQLListOfSchemas( null );
    String expected = "SELECT SCHEMA_NAME AS \"name\" FROM " + databaseName + ".INFORMATION_SCHEMA.SCHEMATA";

    verify( snowflakeHVDatabaseMeta ).getSQLListOfSchemas( null );
    assertEquals( expected, result );
  }