@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 testAttemptPathsDifferentByTaskAttempt() throws Exception {
    Configuration config = newConfig();
    final String jobUUID = addUUID(config);
    config.set(BUFFER_DIR, "file:/tmp/mr-local-0");
    String attempt1Path = getLocalTaskAttemptTempDir(config,
        jobUUID, AID).toString();
    String attempt2Path = getLocalTaskAttemptTempDir(config,
        jobUUID, AID2).toString();
    Assertions.assertThat(attempt2Path)
        .describedAs("local task attempt dir of TA1 must not match that of TA2")
        .isNotEqualTo(attempt1Path);
  }