### Question:
AvroOutputFormat extends FileOutputFormat<AvroWrapper<T>, NullWritable> { public static void setSyncInterval(JobConf job, int syncIntervalInBytes) { job.setInt(SYNC_INTERVAL_KEY, syncIntervalInBytes); }  static void setDeflateLevel(JobConf job, int level); static void setSyncInterval(JobConf job, int syncIntervalInBytes); @Override RecordWriter<AvroWrapper<T>, NullWritable> getRecordWriter(FileSystem ignore, JobConf job, String name,
      Progressable prog); final static String EXT; static final String DEFLATE_LEVEL_KEY; static final String XZ_LEVEL_KEY; static final String SYNC_INTERVAL_KEY; }### Answer:
@Test public void testSetSyncInterval() { JobConf jobConf = new JobConf(); int newSyncInterval = 100000; AvroOutputFormat.setSyncInterval(jobConf, newSyncInterval); assertEquals(newSyncInterval, jobConf.getInt(AvroOutputFormat.SYNC_INTERVAL_KEY, -1)); }