mock(TaskHeartbeatHandler.class), appCtx, locationHint, false,
resource, createFakeContainerContext(), false);
taImpl.handle(new TaskAttemptEventSchedule(taskAttemptID, null));
// At state STARTING.
taImpl.handle(new TaskAttemptEventStartedRemotely(taskAttemptID, contId,
null));
taImpl.handle(new TaskAttemptEvent(taskAttemptID,
TaskAttemptEventType.TA_DONE));
assertEquals("Task attempt is not in succeeded state", taImpl.getState(),
TaskAttemptState.SUCCEEDED);