Added MockRecordWriterFactory