### Question:
RunScheduleDao extends NamedParameterJdbcDaoSupport { @Transactional(propagation = Propagation.MANDATORY) public void deleteRunSchedules(final List<Long> ids) { final MapSqlParameterSource[] params = ids.stream() .map(RunScheduleParameters::getId) .collect(Collectors.toList()) .toArray(new MapSqlParameterSource[ids.size()]); getNamedParameterJdbcTemplate().batchUpdate(deleteRunScheduleQuery, params); }  @Transactional(propagation = Propagation.MANDATORY) Long createScheduleId(); @Transactional(propagation = Propagation.MANDATORY) void createRunSchedules(final List<RunSchedule> schedules); @Transactional(propagation = Propagation.REQUIRED) void updateRunSchedules(final List<RunSchedule> schedules); List<RunSchedule> loadAllRunSchedulesBySchedulableIdAndType(final Long schedulableId,
                                                                       final ScheduleType scheduleType); List<RunSchedule> loadAllRunSchedules(); Optional<RunSchedule> loadRunSchedule(final Long id); @Transactional(propagation = Propagation.MANDATORY) void deleteRunSchedules(final List<Long> ids); @Transactional(propagation = Propagation.MANDATORY) void deleteRunSchedules(final Long runId, final ScheduleType scheduleType); void deleteRunSchedulesForRunByPipeline(final Long pipelineId); @Required void setScheduleSequence(final String scheduleSequence); @Required void setCreateRunScheduleQuery(final String createRunScheduleQuery); @Required void setUpdateRunScheduleQuery(final String updateRunScheduleQuery); @Required void setDeleteRunScheduleQuery(final String deleteRunScheduleQuery); @Required void setLoadRunScheduleQuery(final String loadRunScheduleQuery); @Required void setLoadAllRunSchedulesByRunIdQuery(final String loadAllRunSchedulesByRunIdQuery); @Required void setLoadAllRunSchedulesQuery(final String loadAllRunSchedulesQuery); @Required void setDeleteRunSchedulesForRunQuery(final String deleteRunSchedulesForRunQuery); @Required void setDeleteRunSchedulesForRunByPipelineIdQuery(final String deleteRunSchedulesForRunByPipelineIdQuery);  }### Answer:
@Test public void testDeleteRunSchedules() { runScheduleDao.createRunSchedules(Arrays.asList(testRunSchedule, testUpdatedRunSchedule, testRunSchedule2)); runScheduleDao.deleteRunSchedules(testRunSchedule.getSchedulableId(), ScheduleType.PIPELINE_RUN); final List<RunSchedule> runSchedules = runScheduleDao.loadAllRunSchedules(); assertEquals(1, runSchedules.size()); assertEquals(runSchedules.get(0).getId(), testRunSchedule2.getId()); }