protected final void replaceHBaseSiteXML() throws IOException {
    LOG.info("Replace hbase config {} with {}", configFileUnderTestDataDir,
      overrideConfigFileUnderTestDataDir);
    // make a backup of hbase-site.xml
    Files.copy(configFileUnderTestDataDir, backupConfigFileUnderTestDataDir,
      StandardCopyOption.REPLACE_EXISTING);
    // update hbase-site.xml by overwriting it
    Files.copy(overrideConfigFileUnderTestDataDir, configFileUnderTestDataDir,
      StandardCopyOption.REPLACE_EXISTING);
  }
Replace the hbase-site.xml file under this test's data directory with the content of the
override-hbase-site.xml file. Stashes the current existing file so that it can be restored
using {@link #restoreHBaseSiteXML()}.
@throws IOException if an I/O error occurs
hbase-server/src/test/java/org/apache/hadoop/hbase/client/AbstractTestUpdateConfiguration.java