source: class TestMRApps {
  
    private static File testWorkDir;
    private static final Log LOG;
    private static final String[] SYS_CLASSES;
    private static final String[] DEFAULT_XMLS;
  
    @Test (timeout = 120000)
    public void testToTaskID() {
  
target:     TaskId tid = MRApps.toTaskID("task_1_2_r_3");
      assertEquals(1, tid.getJobId().getAppId().getClusterTimestamp());
      assertEquals(2, tid.getJobId().getAppId().getId());
      assertEquals(2, tid.getJobId().getId());
      assertEquals(TaskType.REDUCE, tid.getTaskType());
      assertEquals(3, tid.getId());
  
      tid = MRApps.toTaskID("task_1_2_m_3");
      assertEquals(TaskType.MAP, tid.getTaskType());
    }
  
  }