@Test
public void testUserNamePercentDecoding() throws IOException {

  String jobHistoryFile = String.format(JOB_HISTORY_FILE_FORMATTER,
      JOB_ID,
      SUBMIT_TIME,
      USER_NAME_WITH_DELIMITER_ESCAPE,
      JOB_NAME,
      FINISH_TIME,
      NUM_MAPS,
      NUM_REDUCES,
      JOB_STATUS,
      QUEUE_NAME,
      JOB_START_TIME);
  JobIndexInfo info = FileNameIndexUtils.getIndexInfo(jobHistoryFile);
  Assert.assertEquals("User name doesn't match",
      USER_NAME_WITH_DELIMITER, info.getUser());
}