### Question:
DBAlertMonitorManager extends DBManager<AlertMonitor> implements AlertMonitorManager { @Override public final List<AlertMonitor> getAlertMonitorList(final Class<? extends AlertMonitor> clazz) throws AlertMonitorManagerException { LOGGER.debug("Getting Alert Monitor list"); final List<AlertMonitor> monitors; try { monitors = super.getList(clazz); } catch (DBManagerException e) { throw new AlertMonitorManagerException(e); } LOGGER.debug("Got {} Alert Monitors", monitors.size()); return monitors; } DBAlertMonitorManager(final SessionFactory sessionFactory); @Override final AlertMonitor saveAlertMonitor(final AlertMonitor monitor); @Override final void updateAlertMonitor(final AlertMonitor monitor); @Override final List<AlertMonitor> getAlertMonitorList(final Class<? extends AlertMonitor> clazz); @Override final AlertMonitor getAlertMonitor(final String name); @Override final boolean deleteAlertMonitor(final String name);  }### Answer:
@Test public final void getAlertMonitorList() { DBAlertMonitorManager dbamm = new DBAlertMonitorManager(sessionFactory); LOGGER.debug("Adding multiple Alert Monitors"); JsonAlertMonitor monitor = new JsonAlertMonitor("test"); List<AlertMonitor> monList; monitor.setName("TestAM1"); dbamm.saveAlertMonitor(monitor); JsonAlertMonitor monitor2 = new JsonAlertMonitor("test"); monitor2.setName("TestAM2"); dbamm.saveAlertMonitor(monitor2); LOGGER.debug("Reterieving an Alert Monitor List"); monList = dbamm.getAlertMonitorList(AlertMonitor.class); Assert.assertEquals(monList.get(0).getName(), "TestAM1"); Assert.assertEquals(monList.get(1).getName(), "TestAM2"); }