@Test
public void testGetFormDisplayTaskWithoutProcess() {

    long taskId = 1;
    final TaskImpl task = new TaskImpl();
    task.setId(taskId);
    task.setName("TaskName");
    task.setTaskData(new TaskDataImpl());
    when(taskService.execute(any(GetUserTaskCommand.class))).thenReturn(task);
    final String form = formProviderService.getFormDisplayTask(1);
    assertEquals("", form);
    verify(dataService, never()).getProcessesByDeploymentIdProcessId(anyString(), anyString());
    verify(formProvider).render(eq(task.getName()), eq(task), isNull(ProcessDefinition.class), anyMap());
}