@Test
public void testGetFormDisplayTask() {

    long taskId = 1;
    final TaskImpl task = new TaskImpl();
    task.setId(taskId);
    task.setName("TaskName");
    final TaskDataImpl taskData = new TaskDataImpl();
    final String deploymentId = "org.jbpm";
    taskData.setDeploymentId(deploymentId);
    final String processId = "org.jbpm.evaluation";
    taskData.setProcessId(processId);
    task.setTaskData(taskData);
    when(taskService.execute(any(GetUserTaskCommand.class))).thenReturn(task);
    final ProcessDefinition processDefinition = mock(ProcessDefinition.class);
    when(dataService.getProcessesByDeploymentIdProcessId(deploymentId, processId)).thenReturn(processDefinition);
    final String form = formProviderService.getFormDisplayTask(1);
    assertEquals("", form);
    verify(dataService).getProcessesByDeploymentIdProcessId(deploymentId, processId);
    verify(formProvider).render(eq(task.getName()), eq(task), eq(processDefinition), anyMap());
}