### Question:
TaskAssigningRuntimeClientImpl extends AbstractKieServicesClientImpl implements TaskAssigningRuntimeClient { @Override public TaskDataList findTasks(Long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate, Integer page, Integer pageSize, TaskInputVariablesReadMode inputVariablesReadMode) { final Map<String, Object> params = TaskQueryParamsBuilder.builder() .fromTaskId(fromTaskId) .status(status) .fromLastModificationDate(fromLastModificationDate) .page(page) .pageSize(pageSize) .taskInputVariablesReadMode(inputVariablesReadMode) .build(); return executeFindTasksQuery(params); } TaskAssigningRuntimeClientImpl(KieServicesConfiguration config);  TaskAssigningRuntimeClientImpl(KieServicesConfiguration config, ClassLoader classLoader); @Override PlanningExecutionResult executePlanning(PlanningItemList planningItemList, String userId); @Override TaskDataList findTasks(Long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate,
                                  Integer page, Integer pageSize,
                                  TaskInputVariablesReadMode inputVariablesReadMode); @Override TaskDataList findTasks(Long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate,
                                  Integer page, Integer pageSize); KieServicesConfiguration getConfig();  }### Answer:
@Test public void findTasksWithReadModeJms() { when(config.isRest()).thenReturn(false); Assertions.assertThatThrownBy(() -> runtimeClient.findTasks(FROM_TASK_ID, STATUS, FROM_LAST_MODIFICATION_DATE, PAGE, PAGE_SIZE, TaskInputVariablesReadMode.READ_FOR_ALL)) .hasMessage("JMS protocol is not implemented for this service."); }
@Test public void findTasksWithoutReadModeJms() { when(config.isRest()).thenReturn(false); Assertions.assertThatThrownBy(() -> runtimeClient.findTasks(FROM_TASK_ID, STATUS, FROM_LAST_MODIFICATION_DATE, PAGE, PAGE_SIZE)) .hasMessage("JMS protocol is not implemented for this service."); }