### Question:
LegacyLocalJasperReportsDao implements LocalJasperReportsDao { @Override public String getEngine(String id) { for (JasperReportDefinition report : m_LocalJasperReports.getReportList()) { if (id.equals(report.getId())) { return report.getEngine(); } } return null; } LegacyLocalJasperReportsDao(Resource configResource, Resource jrTemplateResource); @Override void loadConfiguration(); @Override void setConfigResource(Resource configResource); @Override Resource getConfigResource(); @Override void setJrTemplateResource(Resource jrTemplateResource); @Override Resource getJrTemplateResource(); @Override String getTemplateLocation(String id); @Override String getEngine(String id); @Override InputStream getTemplateStream(String id); LocalJasperReports getLocalJasperReports(); void setLocalJasperReports(LocalJasperReports localJasperReports);  }### Answer:
@Test public void testJasperReportEngine() throws Exception { assertEquals("Test jasper sample-report engine","jdbc", m_localJasperReportsDao.getEngine("sample-report")); assertEquals("Test jasper online-sample-report engine","jdbc", m_localJasperReportsDao.getEngine("online-sample-report")); assertEquals("Test jasper not-online-sample-report engine","jdbc", m_localJasperReportsDao.getEngine("not-online-sample-report")); }