### Question:
CompositeAlertService implements AlertService { public final void alert(final Alert alert) { LOGGER.debug("Sending alerts to all Managed Alert Services"); alertManager.saveAlert(alert); for (ManagedAlertService currentService : alertServices) { if (currentService.isEnabled()) { currentService.alert(alert); } } }  final void alert(final Alert alert); final void alertSummary(final ReportSummary summary);  }### Answer:
@Test @SuppressFBWarnings( value = "RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT", justification = "These method calls are made for verification purposes with Mockito" ) public final void testAlert() { Alert alert = mock(Alert.class); when(enabledService.isEnabled()).thenReturn(true); when(disabledService.isEnabled()).thenReturn(false); doNothing().when(enabledService).alert(any(Alert.class)); alertService.alert(alert); verify(enabledService).isEnabled(); verify(disabledService).isEnabled(); verify(alertManager).saveAlert(alert); verify(enabledService).alert(alert); verifyNoMoreInteractions(alert, enabledService, disabledService); }