MonitoringService implements IMonitoringService { @Override public synchronized <T extends IMonitoringSubscriber> void register( T subscriber ) { logger.debug( "registering subscriber " + ( subscriber != null ? subscriber.getSubscriberId() : "null" ) ); getAsyncEventBus().register( subscriber ); } MonitoringService(); @Override synchronized void register( T subscriber ); @Override synchronized void unregister( T subscriber ); @Override synchronized void post( T event );  }
@Test public void testMonitoringServiceRegistration() { service.register( new MockMonitoringSubscriber() ); }