### Question:
TaskAssigningRuntimeDelegate { public FindTasksResult findTasks(List<Status> status, LocalDateTime fromLastModificationDate, TaskInputVariablesReadMode inputVariablesReadMode) { TaskDataReader.Result result = TaskDataReader.from(runtimeClient).readTasks(0, convertToStringList(status), fromLastModificationDate, PAGE_SIZE, inputVariablesReadMode); return new FindTasksResult(result.getQueryTime(), result.getTasks()); } TaskAssigningRuntimeDelegate(final TaskAssigningRuntimeClient runtimeClient); FindTasksResult findTasks(List<Status> status, LocalDateTime fromLastModificationDate, TaskInputVariablesReadMode inputVariablesReadMode); PlanningExecutionResult executePlanning(List<PlanningItem> planningItems, String userId);  }### Answer:
@Test public void findTasks() { List<String> status = Collections.singletonList(convertToString(Status.Ready)); List<Status> internalStatus = Collections.singletonList(Status.Ready); LocalDateTime lastModificationDate = LocalDateTime.now(); TaskInputVariablesReadMode mode = TaskInputVariablesReadMode.READ_FOR_ALL; TaskDataList taskDataList = new TaskDataList(); LocalDateTime queryTime = LocalDateTime.now(); taskDataList.setQueryTime(queryTime); when(runtimeClient.findTasks(eq(0L), eq(status), eq(lastModificationDate), anyInt(), anyInt(), eq(mode))).thenReturn(taskDataList); TaskAssigningRuntimeDelegate.FindTasksResult result = delegate.findTasks(internalStatus, lastModificationDate, mode); verify(runtimeClient).findTasks(eq(0L), eq(status), eq(lastModificationDate), anyInt(), anyInt(), eq(mode)); assertTrue(result.getTasks().isEmpty()); assertEquals(queryTime, result.getQueryTime()); }