public TaskType getTaskType() {
    return type;
  }
@Test
  public void testGetTaskTypeChar() {
    assertEquals("The getTaskType() method did not return the expected type",
        TaskType.MAP,
        TaskID.getTaskType('m'));
    assertEquals("The getTaskType() method did not return the expected type",
        TaskType.REDUCE,
        TaskID.getTaskType('r'));
    assertEquals("The getTaskType() method did not return the expected type",
        TaskType.JOB_SETUP,
        TaskID.getTaskType('s'));
    assertEquals("The getTaskType() method did not return the expected type",
        TaskType.JOB_CLEANUP,
        TaskID.getTaskType('c'));
    assertEquals("The getTaskType() method did not return the expected type",
        TaskType.TASK_CLEANUP,
        TaskID.getTaskType('t'));
    assertNull("The getTaskType() method did not return null for an unknown "
        + "type", TaskID.getTaskType('x'));
  }