protected static void addResourceToRegionServerConfiguration(final HBaseTestingUtil testUtil) {
    // When RegionServer is created in MiniHBaseCluster, it uses HBaseConfiguration.create(conf) of
    // the master Configuration. The create() just copies config params over, it does not do
    // a clone for a historic reason. Properties such as resources are lost during this process.
    // Exposing a new method in HBaseConfiguration causes confusion. Instead, the new hbase-site.xml
    // under test-data directory is added to RegionServer's configuration as a workaround.
    for (RegionServerThread rsThread : testUtil.getMiniHBaseCluster().getRegionServerThreads()) {
      rsThread.getRegionServer().getConfiguration()
        .addResource(testUtil.getDataTestDir(SERVER_CONFIG));
    }
  }
Base class to test Configuration Update logic. It wraps up things needed to test configuration
change and provides utility methods for test cluster setup, updating/restoring configuration
file.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/AbstractTestUpdateConfiguration.java