AvroMultipleOutputs { public Set<String> getNamedOutputs(){ return Collections.unmodifiableSet(this.namedOutputs); } AvroMultipleOutputs(
      TaskInputOutputContext<?, ?, ?, ?> context); @SuppressWarnings("rawtypes") static void addNamedOutput(Job job, String namedOutput,
      Class<? extends OutputFormat> outputFormatClass,
      Schema keySchema); @SuppressWarnings("rawtypes") static void addNamedOutput(Job job, String namedOutput,
      Class<? extends OutputFormat> outputFormatClass,
      Schema keySchema, Schema valueSchema); static void setCountersEnabled(Job job, boolean enabled); static boolean getCountersEnabled(JobContext job); Set<String> getNamedOutputs(); void write(String namedOutput, Object key); void write(String namedOutput, Object key, Object value); @SuppressWarnings("unchecked") void write(String namedOutput, Object key, Object value,
      String baseOutputPath); void write(Object key, Object value, String baseOutputPath); @SuppressWarnings({ "unchecked", "deprecation" }) void write(Object key, Object value, Schema keySchema,
      Schema valSchema, String baseOutputPath); @SuppressWarnings("rawtypes") synchronized RecordWriter getRecordWriter(
      TaskAttemptContext taskContext, String baseFileName); @SuppressWarnings("deprecation") TaskAttemptContext getContext(String nameOutput); void close();  }
@Test public void testGetNamedOutput() throws Exception { String namedOutputMeta = "meta"; String namedOutputFault = "fault"; Configuration conf = new Configuration(); conf.set(MULTIPLE_OUTPUTS, namedOutputMeta + ' ' + namedOutputFault); doReturn(conf).when(context).getConfiguration(); AvroMultipleOutputs multipleOutputs = new AvroMultipleOutputs(context); Set<String> namedOutputs = multipleOutputs.getNamedOutputs(); assertEquals(2, namedOutputs.size()); Iterator<String> it = namedOutputs.iterator(); assertTrue(it.hasNext()); assertEquals(namedOutputMeta, it.next()); assertTrue(it.hasNext()); assertEquals(namedOutputFault, it.next()); assertFalse(it.hasNext()); }