MonitoringService implements IMonitoringService { @Override public synchronized <T extends IMonitoringEvent> void post( T event ) { logger.debug( "posting event " + ( event != null ? event.getId() : "null" ) ); getAsyncEventBus().post( event ); } MonitoringService(); @Override synchronized void register( T subscriber ); @Override synchronized void unregister( T subscriber ); @Override synchronized void post( T event );  }
@Test public void testMonitoringServiceEventPosting() { service.post( new MockMonitoringEvent() ); }