### Question:
MultiRFileOutputFormatter extends FileOutputFormat<BulkIngestKey,Value> { public static void setFileType(Configuration conf, String type) { if (type != null) conf.set(FILE_TYPE, type); }  static void setGenerateMapFileRowKeys(Configuration conf, boolean generateMapFileRowKeys); static void setGenerateMapFilePerShardLocation(Configuration conf, boolean generateMapFilePerShardLocation); static void setCompressionType(Configuration conf, String compressionType); static void setCompressionTableBlackList(Configuration conf, Set<String> compressionTableBlackList); static void setFileType(Configuration conf, String type); static void setAccumuloConfiguration(Configuration conf); static void setRFileLimits(Configuration conf, int maxEntries, long maxSize); static void addTableToLocalityGroupConfiguration(Configuration conf, String tableName); @Override synchronized OutputCommitter getOutputCommitter(TaskAttemptContext context); @Override RecordWriter<BulkIngestKey,Value> getRecordWriter(final TaskAttemptContext context); static final String CONFIGURE_LOCALITY_GROUPS; static final String EVENT_PARTITION_COUNT; static final String EDGE_PARTITION_COUNT; static final String INDEX_PARTITION_COUNT; static final String REV_INDEX_PARTITION_COUNT; static final String LOCATION_PARTITION_COUNT; static final String CONFIGURED_TABLE_NAMES; }### Answer:
@Test public void testSetFileType() { MultiRFileOutputFormatterTest.logger.info("testSetFileType called..."); try { String typeKey = String.format("%s.file_type", MultiRFileOutputFormatter.class.getSimpleName()); Configuration conf = createMockConfiguration(); Assert.assertFalse("mockedConfiguration incorrectly contained a File Type property", MultiRFileOutputFormatterTest.mockedConfiguration.containsKey(typeKey)); MultiRFileOutputFormatter.setFileType(conf, null); Assert.assertFalse("MultiRFileOutputFormatter#setFileType incorrectly added a File Type property", MultiRFileOutputFormatterTest.mockedConfiguration.containsKey(typeKey)); MultiRFileOutputFormatter.setFileType(conf, "fileType"); Assert.assertTrue("MultiRFileOutputFormatter#setFileType failed to add a File Type property", MultiRFileOutputFormatterTest.mockedConfiguration.containsKey(typeKey)); Assert.assertEquals("MultiRFileOutputFormatter#setFileType failed to retain the expected File Type property value", "fileType", MultiRFileOutputFormatterTest.mockedConfiguration.get(typeKey)); } finally { MultiRFileOutputFormatterTest.logger.info("testSetFileType completed."); } }