code: public static void assertSelectCount(long expectedSelectCount) {
          QueryCount queryCount = QueryCountHolder.getGrandTotal();
          long recordedSelectCount = queryCount.getSelect();
          if (expectedSelectCount != recordedSelectCount) {
              throw new SQLSelectCountMismatchException(expectedSelectCount, recordedSelectCount);
          }
      }
docs: Assert select statement count
  
  @param expectedSelectCount expected select statement count