@Test
  public void runMonkeys() throws Exception {
    try (Monkeys monkeys = new Monkeys()) {
      for (int i = 0; i < 2; i++) {
        monkeys.startChaos();
        Thread.sleep(RUN_SECS);
        monkeys.stopChaos();
        Thread.sleep(WAIT_SECS);
      }
    }
  }
This is an integration test for showing a simple usage of how to use {@link Monkeys} to control
{@link ChaosMonkeyRunner}.
hbase-it/src/test/java/org/apache/hadoop/hbase/test/IntegrationTestMonkeys.java