HostNotifier implements Runnable { @Override public void run() { processHeartbeat( oldRhInfo, newRhInfo, alerts ); } HostNotifier( final HostListener listener, final ResourceHostInfo oldRhInfo, final ResourceHostInfo newRhInfo,
                  final Set<QuotaAlertValue> alerts );   HostNotifier( final HostListener listener, final ResourceHostInfo oldRhInfo ); @Override void run();  }
@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 ) ); }