public ExpectedRecords<T> expect(T record,int times){
  if (record == null) {
    throw new IllegalArgumentException("Record has too be not null!");
  }
  expectedRecords.add(record);
  return this;
}

public ExpectedRecords < T > expect ( T record , int times ) { if ( record == null ) { throw new IllegalArgumentException ( "Record has too be not null!" ) ; } expectedRecords . add ( record ) ; return this ; }
adds an record to the collection of expected output
