taId.setId(0);
taId.setTaskId(task.getID());
when(attempt.getID()).thenReturn(taId);
when(attempt.getNodeHttpAddress()).thenReturn("Node address");
ContainerId containerId = new ContainerIdPBImpl();
containerId.setId(1);
ApplicationAttemptId appAId = new ApplicationAttemptIdPBImpl();
appAId.setAttemptId(1);
ApplicationId appId = new ApplicationIdPBImpl();
appId.setClusterTimestamp(System.currentTimeMillis());
appId.setId(5);
appAId.setApplicationId(appId);
containerId.setApplicationAttemptId(appAId);
when(attempt.getAssignedContainerID()).thenReturn(containerId);
when(attempt.getAssignedContainerMgrAddress()).thenReturn(
"assignedContainerMgrAddress");
when(attempt.getNodeRackName()).thenReturn("nodeRackName");