code: public static void assertInsertCount(long expectedInsertCount) {
          QueryCount queryCount = QueryCountHolder.getGrandTotal();
          long recordedInsertCount = queryCount.getInsert();
          if (expectedInsertCount != recordedInsertCount) {
              throw new SQLInsertCountMismatchException(expectedInsertCount, recordedInsertCount);
          }
      }
docs: Assert insert statement count
  
  @param expectedInsertCount expected insert statement count