### Question:
DefaultDatabaseReportConfigDao extends AbstractCastorConfigDao<DatabaseReports, List<Report>> implements DatabaseReportConfigDao { public List<Report> getOnlineReports() { List<Report> onlineReports = new ArrayList<Report>(); for(Report report : getContainer().getObject()) { if (report.isOnline()) { onlineReports.add(report); } } return onlineReports; } DefaultDatabaseReportConfigDao(); @Override List<Report> translateConfig(DatabaseReports castorConfig); String getReportService(String name); String getDisplayName(String name); List<Report> getReports(); List<Report> getOnlineReports();  }### Answer:
@Test public void testGetOnlineReports() throws Exception { assertEquals(1,m_dao.getOnlineReports().size()); }