connection.disableTable(tableName);
connection.dropTable(tableName);
}
assertFalse(connection.tableExists(tableName));
connection.execute("CREATE TABLE " + tableName + " (family1(), family2(), family3())");
assertTrue(connection.tableExists(tableName));
HTableDescriptor table = connection.getHTableDescriptor(tableName);
HColumnDescriptor[] hcd = table.getColumnFamilies();
assertTrue((hcd.length == 3));
assertTrue(table.hasFamily("family1".getBytes()));
assertTrue(table.hasFamily("family2".getBytes()));