HeartbeatEvent extends AdapterLifecycleEvent implements LoggableEvent { @Override public void logEvent(Logger logger) { logger.trace("Heartbeat created=class {}", this.getClass().getSimpleName()); } HeartbeatEvent(); long getHeartbeatTime(); void setHeartbeatTime(long l); void extractState(Adapter adapter); AdapterStateSummary getAdapterStateSummary(); void setAdapterStateSummary(AdapterStateSummary a); @Override void logEvent(Logger logger);  }
@Test public void testLogEvent() throws Exception { event.logEvent(mockLogger); verify(mockLogger).trace(anyString(), anyString()); }