Task[] tasks = tmsServer.getTaskList(dao,TOKEN_CURRENT);
/*
* Select one task to re-assign
*/
Task selectTask = tasks[0];
String selectTaskId = selectTask.getID();
_logger.debug("Select one task: " + selectTaskId);
/*
* Select a user to be re-assigned.
*/
AuthIdentifierSet targetUserSet = new AuthIdentifierSet();
String targetUserId = users[0];
_logger.debug("Select one target user = " + targetUserId);
targetUserSet.add(targetUserId);
/*
* Re-assign task
*/
tmsServer.reassign(dao,selectTask.getID(), targetUserSet, new AuthIdentifierSet(), TaskState.READY, "token1");
_logger.debug("Reassign task[" + selectTaskId + "] to " + targetUserId);
/*
* check that the task is not in the inbox of current user
*/