@Test
  public void testMiniClusterWithSSLOn() throws Exception {
    final String BASEDIR = System.getProperty("test.build.dir", "target/test-dir") + "/"
      + TestHBaseTestingUtil.class.getSimpleName();
    String sslConfDir = KeyStoreTestUtil.getClasspathDir(TestHBaseTestingUtil.class);
    String keystoresDir = new File(BASEDIR).getAbsolutePath();

    HBaseTestingUtil hbt = new HBaseTestingUtil();
    File base = new File(BASEDIR);
    FileUtil.fullyDelete(base);
    base.mkdirs();

    KeyStoreTestUtil.setupSSLConfig(keystoresDir, sslConfDir, hbt.getConfiguration(), false);

    hbt.getConfiguration().set("hbase.ssl.enabled", "true");
    hbt.getConfiguration().addResource(hbt.getConfiguration().get(SSLFactory.SSL_CLIENT_CONF_KEY));
    hbt.getConfiguration().addResource(hbt.getConfiguration().get(SSLFactory.SSL_SERVER_CONF_KEY));

    SingleProcessHBaseCluster cluster = hbt.startMiniCluster();
    try {
      assertEquals(1, cluster.getLiveRegionServerThreads().size());
    } finally {
      hbt.shutdownMiniCluster();
    }
  }
Basic sanity test that spins up multiple HDFS and HBase clusters that share the same ZK
ensemble. We then create the same table in both and make sure that what we insert in one place
doesn't end up in the other.
@throws Exception on error
hbase-server/src/test/java/org/apache/hadoop/hbase/TestHBaseTestingUtil.java