@Test
public void testRun() throws Exception
{

    notifier.run();
    verify( listener ).onHeartbeat( newRhInfo, alerts );
    RuntimeException exception = mock( RuntimeException.class );
    doThrow( exception ).when( listener ).onHeartbeat( newRhInfo, alerts );
    notifier.run();
    verify( exception ).printStackTrace( any( PrintStream.class ) );
}