public static PathOutputCommitter createCommitter(Path outputPath,
      TaskAttemptContext context) throws IOException {
    return getCommitterFactory(outputPath,
        context.getConfiguration())
        .createOutputCommitter(outputPath, context);
  }
@Test
  public void testCommitterNullOutputPath() throws Throwable {
    // bind http to schema
    Configuration conf = newBondedConfiguration();
    // then ask committers for a null path
    FileOutputCommitter committer = createCommitter(
        FileOutputCommitterFactory.class,
        FileOutputCommitter.class,
        null, conf);
    assertNull(committer.getOutputPath());
    assertNull(committer.getWorkPath());
  }