### Question:
BasicMailAlertNotifier extends BaseSupportedService implements AlertNotifier { @Override public void startup() { alertService.registerAlertNotifier(this); } BasicMailAlertNotifier(AlertService alertService, MailSenderService mailSenderService); @Override String getName(); @Override void startup(); @Override void shutdown(); @Override void notify(String alertType, String id, String message); static final String CONFIGURATION_PREFIX_INTERACTIVESPACES_SERVICE_ALERT_NOTIFIER_MAIL; static final String CONFIGURATION_INTERACTIVESPACES_SERVICE_ALERT_NOTIFIER_MAIL_TO; static final String CONFIGURATION_INTERACTIVESPACES_SERVICE_ALERT_NOTIFIER_MAIL_FROM; static final String CONFIGURATION_INTERACTIVESPACES_SERVICE_ALERT_NOTIFIER_MAIL_SUBJECT; static final String NAME; }### Answer:
@Test public void testAlertServiceRegistration() { notifier.startup(); Mockito.verify(alertService, Mockito.times(1)).registerAlertNotifier(notifier); Mockito.verify(alertService, Mockito.never()).unregisterAlertNotifier( Mockito.any(AlertNotifier.class)); }