@Override
 public void writeRecord(Record rec) throws IOException {
   if (++this.cnt >= 10) {
     throw new RuntimeException("Expected Test Exception");
   }
   super.writeRecord(rec);
 }
 @Override
 public void configure(Configuration parameters) {
   super.configure(parameters);
 }