@Test
public void testLogError() throws Exception
{

    Logger logger = mock( Logger.class );
    doThrow( new RuntimeException( "" ) ).when( listener ).onAlert( alert );
    AlertNotifier alertNotifier = new AlertNotifier( alert, listener );
    alertNotifier.LOG = logger;
    alertNotifier.run();
    verify( logger ).error( anyString(), any( RuntimeException.class ) );
}