Steps to reproduce:
1. Create a task with owner user and assign it to an assignee user.
2. Authenticate with task assignee user and perform rest-api call:
with following input:
Actual response is successful (200).
As per documentation: "To delegate a task, the authenticated user must be the assignee of the task and the assignee must be different from the owner." See http://docs.alfresco.com/5.0/pra/1/concepts/act-tasks-put-task.html
Thus, since the authenticated user is the assignee of the task and the new assignee is the owner, the call should fail maybe with bad request(400).
The task assignee can also delegate a task cu an inexistent user - response status code is 200.
Failed tests: tas-rest-api project: