public static final boolean FOR_INDEPENDENT_TASKS = true;
public static final boolean FOR_PROCESS_TASKS = false;
public static void setupTaskMocks(TaskDeploymentIdTest test, boolean independentTask) {
DeploymentInfoBean runtimeMgrMgrMock = spy(new DeploymentInfoBean());
RuntimeEngine runtimeEngineMock = mock(RuntimeEngine.class);
doReturn(runtimeEngineMock).when(runtimeMgrMgrMock).getRuntimeEngine(anyString(), anyLong());
// - return mock of TaskService
InternalTaskService runtimeTaskServiceMock = mock(InternalTaskService.class);