### Question:
RunStatusDao extends NamedParameterJdbcDaoSupport { public List<RunStatus> loadRunStatus(Long runId) { return getJdbcTemplate().query(loadRunStatusQuery, RunStatusParameters.getRowMapper(), runId); }  @Transactional(propagation = Propagation.MANDATORY) void saveStatus(RunStatus runStatus); List<RunStatus> loadRunStatus(Long runId); List<RunStatus> loadRunStatus(List<Long> runIds); @Transactional(propagation = Propagation.MANDATORY) void deleteRunStatus(Long runId); void deleteRunStatusForPipeline(final Long pipelineId); @Required void setCreateRunStatusQuery(final String createRunStatusQuery); @Required void setLoadRunStatusQuery(final String loadRunStatusQuery); @Required void setLoadRunStatusByListQuery(final String loadRunStatusByListQuery); @Required void setDeleteRunStatusQuery(final String deleteRunStatusQuery); @Required void setDeleteRunStatusForPipelineQuery(final String deleteRunStatusForPipelineQuery);  }### Answer:
@Test public void shouldCreateNewRunStatus() { createStatus(); assertThat(runStatusDao.loadRunStatus(testRun.getId()), hasSize(1)); }
@Test public void shouldLoadRunStatusByList() { createStatus(); List<RunStatus> result = runStatusDao.loadRunStatus(Collections.singletonList(testRun.getId())); assertThat(result, hasSize(1)); assertThat(result.get(0).getRunId(), equalTo(testRun.getId())); }