assertEquals(1, taskReportsResponse.getTaskReportCount());
assertEquals(task.getID(), taskReportsResponse.getTaskReport(0).getTaskId());
assertEquals(TaskState.SUCCEEDED, taskReportsResponse.getTaskReport(0).getTaskState());
//getDelegationToken
GetDelegationTokenRequest delegationTokenRequest = recordFactory
.newRecordInstance(GetDelegationTokenRequest.class);
String s = UserGroupInformation.getCurrentUser().getShortUserName();
delegationTokenRequest.setRenewer(s);
GetDelegationTokenResponse delegationTokenResponse = protocol.getDelegationToken(delegationTokenRequest);
assertEquals("MR_DELEGATION_TOKEN", delegationTokenResponse.getDelegationToken().getKind());
assertNotNull(delegationTokenResponse.getDelegationToken().getIdentifier());
//renewDelegationToken