@Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("StagingCommitter{");
    sb.append(super.toString());
    sb.append(", commitsDirectory=").append(commitsDirectory);
    sb.append(", uniqueFilenames=").append(uniqueFilenames);
    sb.append(", conflictResolution=").append(conflictResolution);
    sb.append(", uploadPartSize=").append(uploadPartSize);
    if (wrappedCommitter != null) {
      sb.append(", wrappedCommitter=").append(wrappedCommitter);
    }
    sb.append('}');
    return sb.toString();
  }
@Test
  public void testAttemptPathConstructionWithSchema() throws Exception {
    Configuration config = newConfig();
    final String jobUUID = addUUID(config);
    String commonPath = "file:/tmp/mr-local-";

    config.set(BUFFER_DIR,
        "file:/tmp/mr-local-0,file:/tmp/mr-local-1");

    Assertions.assertThat(
        getLocalTaskAttemptTempDir(config,
            jobUUID, tac.getTaskAttemptID()).toString())
        .describedAs("Path should be the same with file scheme")
        .startsWith(commonPath);
  }