public ExpectedRecords<T> repeatAll(int times){
  List<T> toAppend=new ArrayList<>();
  for (int i=0; i < times; i++) {
    toAppend.addAll(expectedRecords);
  }
  expectedRecords.addAll(toAppend);
  return this;
}

public ExpectedRecords < T > repeatAll ( int times ) { List < T > toAppend = new ArrayList < > ( ) ; for ( int i = 0 ; i < times ; i ++ ) { toAppend . addAll ( expectedRecords ) ; } expectedRecords . addAll ( toAppend ) ; return this ; }
expect the current output a number of times
