HBaseColumnFamilyManagerFactory implements ColumnFamilyManagerFactory { @Override public HBaseColumnFamilyManager get(String database) { try { Connection connection = ConnectionFactory.createConnection(configuration); Admin admin = connection.getAdmin(); TableName tableName = TableName.valueOf(database); if (admin.tableExists(tableName)) { existTable(admin, tableName); } else { createTable(admin, tableName); } Table table = connection.getTable(tableName); return new HBaseColumnFamilyManager(connection, table); } catch (IOException e) { throw new HBaseException("A error happened when try to create ColumnFamilyManager", e); } } HBaseColumnFamilyManagerFactory(Configuration configuration, List<String> families); @Override HBaseColumnFamilyManager get(String database); @Override void close();  }
@Test public void shouldCreateColumnFamilyManager() { ColumnFamilyManagerFactory managerFactory = configuration.get(); assertNotNull(managerFactory); }