### Question:
CompositeAlertService implements AlertService { public final void alertSummary(final ReportSummary summary) { LOGGER.debug("Sending alert summaries to all Managed Alert Services"); for (ManagedAlertService currentService : alertServices) { if (currentService.isEnabled()) { currentService.alertSummary(summary); } } }  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 testAlertSummary() { ReportSummary reportSummary = mock(ReportSummary.class); when(enabledService.isEnabled()).thenReturn(true); when(disabledService.isEnabled()).thenReturn(false); doNothing().when(enabledService).alertSummary(any(ReportSummary.class)); alertService.alertSummary(reportSummary); verify(enabledService).isEnabled(); verify(disabledService).isEnabled(); verify(enabledService).alertSummary(reportSummary); verifyNoMoreInteractions(reportSummary, enabledService, disabledService); }