### Question:
RestartRunDao extends NamedParameterJdbcDaoSupport { public List<RestartRun> loadAllRestartedRunsForInitialRun(Long runId) { return getJdbcTemplate().query(loadAllRestartedRunsForInitialRunQuery, PipelineRestartRunParameters.getRowMapper(), runId, runId); }  @Transactional(propagation = Propagation.MANDATORY) void createPipelineRestartRun(RestartRun restartRun); Integer countPipelineRestartRuns(Long restartingRunId); RestartRun loadPipelineRestartedRunForParentRun(Long parentRunId); List<RestartRun> loadAllRestartedRuns(); List<RestartRun> loadAllRestartedRunsForInitialRun(Long runId); @Transactional(propagation = Propagation.MANDATORY) void deleteRestartedRunsForPipeline(Long pipelineId); @Required void setCreatePipelineRestartRunQuery(String createPipelineRestartRunQuery); @Required void setCountPipelineRestartRunQuery(String countPipelineRestartRunQuery); @Required void setLoadPipelineRestartedRunForParentRunQuery(String loadPipelineRestartedRunForParentRunQuery); @Required void setLoadAllRestartedRunsQuery(String loadAllRestartedRunsQuery); @Required void setLoadAllRestartedRunsForInitialRunQuery(String loadAllRestartedRunsForInitialRunQuery); @Required void setDeleteRestartedRunsByPipelineQuery(String deleteRestartedRunsByPipelineQuery);  }### Answer:
@Test public void testLoadAllRestartedRunsForInitialRun() { restartRunDao.createPipelineRestartRun(restartRun1); restartRunDao.createPipelineRestartRun(restartRun2); restartRunDao.createPipelineRestartRun(restartRun3); restartRunDao.createPipelineRestartRun(restartRun4); List<RestartRun> runs = restartRunDao.loadAllRestartedRunsForInitialRun(restartRun2.getRestartedRunId()); assertNotNull(runs); assertEquals(3, runs.size()); assertEquals(runs.get(0).getParentRunId(), restartRun1.getParentRunId()); assertEquals(runs.get(1).getParentRunId(), restartRun2.getParentRunId()); assertEquals(runs.get(2).getParentRunId(), restartRun3.getParentRunId()); List<RestartRun> runs2 = restartRunDao.loadAllRestartedRunsForInitialRun(restartRun4.getRestartedRunId()); assertNotNull(runs); assertEquals(1, runs2.size()); assertEquals(runs2.get(0).getParentRunId(), restartRun4.getParentRunId()); }