public static void main(String[] args) throws Exception {
   Configuration conf = HBaseConfiguration.create();
   IntegrationTestingUtility.setUseDistributedCluster(conf);
   IntegrationTestDDLMasterFailover masterFailover = new IntegrationTestDDLMasterFailover();
   Connection connection = null;
   int ret = 1;
   try {
     // Initialize connection once, then pass to Actions
     LOG.debug("Setting up connection ...");
     connection = ConnectionFactory.createConnection(conf);
     masterFailover.setConnection(connection);
     ret = ToolRunner.run(conf, masterFailover, args);
   } catch (IOException e) {
     LOG.fatal("Failed to establish connection. Aborting test ...", e);
   } finally {
     connection = masterFailover.getConnection();
     if (connection != null) {
       connection.close();
     }
     System.exit(ret);
   }
 }