### Question:
DBAlertMonitorManager extends DBManager<AlertMonitor> implements AlertMonitorManager { @Override public final boolean deleteAlertMonitor(final String name) throws AlertMonitorManagerException { LOGGER.debug("deleting Alert Monitor: {}", name); try { return super.delete(name); } catch (DBManagerException e) { throw new AlertMonitorManagerException(e); } } 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 deleteAlertMonitor() { LOGGER.debug("creating DBAlertMonitorManager"); DBAlertMonitorManager dbamm = new DBAlertMonitorManager(sessionFactory); LOGGER.debug("creating an Alert Monitor"); JsonAlertMonitor monitor = new JsonAlertMonitor("test"); monitor.setName("TestAM1"); dbamm.saveAlertMonitor(monitor); LOGGER.debug("saving an Alert Monitor"); AlertMonitor monitor2 = dbamm.get("TestAM1"); Assert.assertEquals(monitor2.getName(), "TestAM1"); LOGGER.debug("deleting an Alert Monitor"); dbamm.deleteAlertMonitor("TestAM1"); AlertMonitor monitor3 = dbamm.get("TestAM1"); Assert.assertNull(monitor3); }