private void assertLogBatchWarnings(boolean expected) {
    boolean actual = false;
    for (LevelAndMessage event : logs) {
      if (
        event.level == org.apache.logging.log4j.Level.WARN
          && event.msg.contains("Large batch operation detected")
      ) {
        actual = true;
        break;
      }
    }
    logs.clear();
    assertEquals(expected, actual);
  }
Sends a multi request with a certain amount of rows, will populate Multi command with either
"rows" number of RegionActions with one Action each or one RegionAction with "rows" number of
Actions
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMultiLogThreshold.java