*/
public void testCloneDatabaseMultiColumn() throws Exception {
// We want to make sure that it clones MultiColumns too!
Table catalog_tbl = this.getTable("WAREHOUSE");
Column columns[] = new Column[] { this.getColumn(catalog_tbl, "W_NAME"), this.getColumn(catalog_tbl, "W_YTD"), };
MultiColumn mc = MultiColumn.get(columns);
assertNotNull(mc);
catalog_tbl.setPartitioncolumn(mc);
Database clone_db = CatalogCloner.cloneDatabase(catalog_db);
assertNotNull(clone_db);
Table clone_tbl = this.getTable(clone_db, catalog_tbl.getName());
Column clone_col = clone_tbl.getPartitioncolumn();
assertNotNull(clone_col);
assert (clone_col instanceof MultiColumn);
MultiColumn clone_mc = (MultiColumn) clone_col;
assertEquals(mc.size(), clone_mc.size());
for (int i = 0; i < mc.size(); i++) {
Column catalog_col = mc.get(i);
assertNotNull(catalog_col);
clone_col = clone_mc.get(i);
assertNotNull(clone_col);
assertEquals(catalog_col, clone_col);
assertNotSame(catalog_col.hashCode(), clone_col.hashCode());
} // FOR
}