public void testTableAdminAndMetadata() throws Exception {
AvroServer.HBaseImpl impl = new AvroServer.HBaseImpl();
assertEquals(impl.listTables().size(), 0);
ATableDescriptor tableA = new ATableDescriptor();
tableA.name = tableAname;
impl.createTable(tableA);
assertEquals(impl.listTables().size(), 1);
assertTrue(impl.isTableEnabled(tableAname));
assertTrue(impl.tableExists(tableAname));
ATableDescriptor tableB = new ATableDescriptor();
tableB.name = tableBname;
impl.createTable(tableB);
assertEquals(impl.listTables().size(), 2);
impl.disableTable(tableBname);