code: public static void assertUpdateCount(long expectedUpdateCount) {
          QueryCount queryCount = QueryCountHolder.getGrandTotal();
          long recordedUpdateCount = queryCount.getUpdate();
          if (expectedUpdateCount != recordedUpdateCount) {
              throw new SQLUpdateCountMismatchException(expectedUpdateCount, recordedUpdateCount);
          }
      }
docs: Assert update statement count
  
  @param expectedUpdateCount expected update statement count