@Test
public void hBaseShouldStart() throws Exception {

    String tableName = configuration.getString(HBaseConfig.HBASE_TEST_TABLE_NAME_KEY);
    String colFamName = configuration.getString(HBaseConfig.HBASE_TEST_COL_FAMILY_NAME_KEY);
    String colQualiferName = configuration.getString(HBaseConfig.HBASE_TEST_COL_QUALIFIER_NAME_KEY);
    Integer numRowsToPut = configuration.getInt(HBaseConfig.HBASE_TEST_NUM_ROWS_TO_PUT_KEY);
    org.apache.hadoop.conf.Configuration hbaseConfiguration = ((BootstrapHadoop) HadoopBootstrap.INSTANCE.getService("HBASE")).getConfiguration();
    LOGGER.info("HBASE: Deleting table {}", tableName);
    deleteHbaseTable(tableName, hbaseConfiguration);
    LOGGER.info("HBASE: Creating table {} with column family {}", tableName, colFamName);
    createHbaseTable(tableName, colFamName, hbaseConfiguration);
    LOGGER.info("HBASE: Populate the table with {} rows.", numRowsToPut);
    for (int i = 0; i < numRowsToPut; i++) {
        putRow(tableName, colFamName, String.valueOf(i), colQualiferName, "row_" + i, hbaseConfiguration);
    }
    LOGGER.info("HBASE: Fetching and comparing the results");
    for (int i = 0; i < numRowsToPut; i++) {
        Result result = getRow(tableName, colFamName, String.valueOf(i), colQualiferName, hbaseConfiguration);
        assertEquals("row_" + i, new String(result.value()));
    }
}