@Test (timeout = 120000)
public void testToTaskAttemptID() {

  TaskAttemptId taid = MRApps.toTaskAttemptID("attempt_0_1_m_2_3");
  assertEquals(0, taid.getTaskId().getJobId().getAppId().getClusterTimestamp());
  assertEquals(1, taid.getTaskId().getJobId().getAppId().getId());
  assertEquals(1, taid.getTaskId().getJobId().getId());
  assertEquals(2, taid.getTaskId().getId());
  assertEquals(3, taid.getId());
}