@Test
  public void removeClosedRegionFromConfigurationManager() throws Exception {
    try (Connection connection = ConnectionFactory.createConnection(conf)) {
      Admin admin = connection.getAdmin();
      assertTrue("The open region doesn't register as a ConfigurationObserver",
        rs1.getConfigurationManager().containsObserver(r1));
      admin.move(r1name);
      hbaseTestingUtility.waitFor(WAIT_TIMEOUT, new Waiter.Predicate<Exception>() {
        @Override
        public boolean evaluate() throws Exception {
          return rs1.getOnlineRegion(r1name) == null;
        }
      });
      assertFalse("The closed region is not removed from ConfigurationManager",
        rs1.getConfigurationManager().containsObserver(r1));
      admin.move(r1name, rs1.getServerName());
      hbaseTestingUtility.waitFor(WAIT_TIMEOUT, new Waiter.Predicate<Exception>() {
        @Override
        public boolean evaluate() throws Exception {
          return rs1.getOnlineRegion(r1name) != null;
        }
      });
    }
  }
Test that the configurations in the CompactionConfiguration class change properly.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerOnlineConfigChange.java