private HTableInterface mTable;
private HBaseTableKeyValueDatabase mDb;
@Before
public final void setupHBaseTable() throws IOException {
final HBaseFactory factory = HBaseFactory.Provider.get();
mConf = super.getConf();
mHBaseAdmin = factory.getHBaseAdminFactory(getKiji().getURI()).create(mConf);
// Create an HBase table.
HTableDescriptor tableDescriptor = new HTableDescriptor(TABLE_NAME);
tableDescriptor.addFamily(new HColumnDescriptor(FAMILY_NAME));
mHBaseAdmin.createTable(tableDescriptor);
mTable = factory.getHTableInterfaceFactory(getKiji().getURI()).create(mConf, TABLE_NAME);
// Fill it with some data.
mDb = new HBaseTableKeyValueDatabase(mTable, FAMILY_NAME);
mDb.putValue("table1", "config1", Bytes.toBytes("1one"));
mDb.putValue("table1", "config2", Bytes.toBytes("1two"));