### Question:
LegacyLocalReportRepository implements ReportRepository { @Override public List<BasicReportDefinition> getReports() { List<BasicReportDefinition> resultList = new ArrayList<BasicReportDefinition>(); for (BasicReportDefinition report : m_localReportsDao.getReports()) { BasicReportDefinition resultReport = new LegacyLocalReportDefinition(); try { BeanUtils.copyProperties(resultReport, report); resultReport.setId(REPOSITORY_ID + "_" + report.getId()); resultReport.setAllowAccess(true); } catch (IllegalAccessException e) { logger.error("IllegalAccessException during BeanUtils.copyProperties for BasicReportDefinion '{}'", e.getMessage()); e.printStackTrace(); } catch (InvocationTargetException e) { logger.error("InvocationTargetException during BeanUtils.copyProperties for BasicReportDefinion '{}'", e.getMessage()); e.printStackTrace(); } resultList.add(resultReport); } return resultList; } LegacyLocalReportRepository(LocalReportsDao localReportsDao, LocalJasperReportsDao localJasperReportsDao); @Override List<BasicReportDefinition> getReports(); @Override List<BasicReportDefinition> getOnlineReports(); @Override String getReportService(String id); @Override String getDisplayName(String id); @Override String getEngine(String id); @Override InputStream getTemplateStream(String id); @Override String getRepositoryId(); @Override String getRepositoryName(); @Override String getRepositoryDescription(); @Override String getManagementUrl(); void setLocalReportsDao(LocalReportsDao localReportsDao); LocalReportsDao getLocalReportsDao(); void setLocalJasperReportsDao(LocalJasperReportsDao localJasperReportsDao); LocalJasperReportsDao getLocalJasperReportsDao(); @Override void loadConfiguration();  }### Answer:
@Test public void testGetReports() throws Exception { assertEquals("Test get mocked *ALL* reports from configured local repository", 2, m_legacyLocalReportRepository.getReports().size()); }