@Test
public void testRemoveOutputData() {

    processInstanceId = processService.startProcess(deploymentUnit.getIdentifier(), "org.jbpm.writedocument");
    Assertions.assertThat(processInstanceId).isNotNull();
    
    List<TaskSummary> tasks = runtimeDataService.getTasksAssignedAsPotentialOwner("salaboy", new QueryFilter());
    Assertions.assertThat(tasks).hasSize(1);
    TaskSummary task = tasks.get(0);
    
    Map<String, Object> output = new HashMap<>();
    output.put("added-output", "draft");
    
    userTaskService.saveContent(task.getId(), output);
    
    Map<String, Object> outputData = userTaskService.getTaskOutputContentByTaskId(task.getId());
    Assertions.assertThat(outputData).containsKey("added-output");
    Assertions.assertThat(outputData.get("added-output")).isEqualTo("draft");
    
    userTaskAdminService.removeTaskOutputs(task.getId(), "added-output");
    
    outputData = userTaskService.getTaskOutputContentByTaskId(task.getId());
    Assertions.assertThat(outputData).doesNotContainKey("added-output");
}