code: static void dataSetAssertion(CallInfo callInfo, DataSet expected, DataSet actual) {
      validateDataSetAssertion(expected, actual);
      DataSource source = expected.getSource();
      Delta delta = new Delta(expected, actual); 
      DataSetAssertion assertion = new DataSetAssertion(expected, delta);
      source.getDB().log(callInfo, assertion);
      
      if (! assertion.passed()) {
        throw new DBAssertionError(callInfo.getMessage());
      }
    }
docs: Perform a data set assertion.
  
  @param callInfo Call info.
  @param expected Expected data.
  @param actual Actual data.
  @throws DBAssertionError If the assertion fails.
  @throws InvalidOperationException If the arguments are invalid.