@Test
public void testAttemptPathConstructionWithSchema() throws Exception {

  Configuration config = new Configuration();
  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");
  assertThat("Path should be the same with file scheme",
      getLocalTaskAttemptTempDir(config,
          jobUUID, tac.getTaskAttemptID()).toString(),
      StringStartsWith.startsWith(commonPath));
}