@Override
    public void createDb(String dbName, Map<String, String> properties) throws AlreadyExistsException {
        if (dbExists(dbName)) {
            throw new AlreadyExistsException("Database Already Exists");
        }
        hmsOps.createDb(dbName, properties);
    }
@Test
    public void createDbTest() throws AlreadyExistsException {
        ExceptionChecker.expectThrowsWithMsg(AlreadyExistsException.class,
                "Database Already Exists",
                () -> hiveMetadata.createDb("db1", new HashMap<>()));

        Map<String, String> conf = new HashMap<>();
        conf.put("location", "abs://xxx/zzz");
        ExceptionChecker.expectThrowsWithMsg(StarRocksConnectorException.class,
                "Invalid location URI: abs://xxx/zzz",
                () -> hiveMetadata.createDb("db3", conf));

        conf.clear();
        conf.put("not_support_prop", "xxx");
        ExceptionChecker.expectThrowsWithMsg(IllegalArgumentException.class,
                "Unrecognized property: not_support_prop",
                () -> hiveMetadata.createDb("db3", conf));

        conf.clear();
        hiveMetadata.createDb("db4", conf);
    }