@Test
public void testNotify() throws Exception
{

    ArgumentCaptor<AlertNotifier> alertNotifierArgumentCaptor = ArgumentCaptor.forClass( AlertNotifier.class );
    monitor.notifyAlertListeners();
    verify( notificationService ).execute( alertNotifierArgumentCaptor.capture() );
    assertEquals( alertListener, alertNotifierArgumentCaptor.getValue().listener );
    assertEquals( alert, alertNotifierArgumentCaptor.getValue().alert );
}