### Question:
DBAlertMonitorManager extends DBManager<AlertMonitor> implements AlertMonitorManager { @Override public final void updateAlertMonitor(final AlertMonitor monitor) throws AlertMonitorManagerException { LOGGER.debug("updating Alert Monitor: {}", monitor); try { super.update(monitor); } 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 updateAlertMonitor() { DBAlertMonitorManager dbamm = new DBAlertMonitorManager(sessionFactory); JsonAlertMonitor monitor = new JsonAlertMonitor("test"); monitor.setName("TestAM1"); Assert.assertEquals("TestAM1", monitor.getName()); dbamm.saveAlertMonitor(monitor); LOGGER.debug("Updating an Alert Monitor"); monitor.setName("TestAM2"); dbamm.updateAlertMonitor(monitor); LOGGER.debug("Verifying changes to the updated Alert Monitor"); AlertMonitor getAm = dbamm.getAlertMonitor("TestAM2"); String getName = getAm.getName(); Assert.assertNotEquals("SNMP", getName); Assert.assertEquals(getName, "TestAM2"); }