.body("_links.processInstance.href", endsWith(MockProvider.EXAMPLE_PROCESS_INSTANCE_ID))
.body("_links.self.href", endsWith(EXAMPLE_TASK_ID))
.when().get(SINGLE_TASK_URL);
String content = response.asString();
// validate embedded assignees:
List<Map<String,Object>> embeddedAssignees = from(content).getList("_embedded.assignee");
Assert.assertEquals("There should be one assignee returned.", 1, embeddedAssignees.size());
Map<String, Object> embeddedAssignee = embeddedAssignees.get(0);