### Question:
MessageBus implements IOFogModule { public synchronized void enableRealTimeReceiving(String receiver) { logDebug("Starting enable real time receiving"); MessageReceiver rec = receiver != null ? receivers.get(receiver) : null; if (rec == null) return; rec.enableRealTimeReceiving(); logDebug("Finishing enable real time receiving"); } private  MessageBus(); @Override int getModuleIndex(); @Override String getModuleName(); static MessageBus getInstance(); synchronized void enableRealTimeReceiving(String receiver); synchronized void disableRealTimeReceiving(String receiver); void update(); void instanceConfigUpdated(); void startServer(); void start(); void stop(); MessagePublisher getPublisher(String publisher); MessageReceiver getReceiver(String receiver); synchronized String getNextId(); synchronized Map<String, Route> getRoutes();  }### Answer:
@Test (timeout = 100000L) public void testEnableRealTimeReceivingWhenReceiverPassedIsNull() { initiateMockStart(); messageBus.enableRealTimeReceiving(null); Mockito.verify(messageReceiver, never()).enableRealTimeReceiving(); PowerMockito.verifyStatic(LoggingService.class); LoggingService.logDebug(MODULE_NAME,"Starting enable real time receiving"); PowerMockito.verifyStatic(LoggingService.class, never()); LoggingService.logDebug(MODULE_NAME,"Finishing enable real time receiving"); }
@Test (timeout = 100000L) public void testEnableRealTimeReceivingWhenReceiverIsNotFound() { initiateMockStart(); messageBus.enableRealTimeReceiving("receiver"); Mockito.verify(messageReceiver, never()).enableRealTimeReceiving(); PowerMockito.verifyStatic(LoggingService.class, never()); LoggingService.logInfo(MODULE_NAME,"Finishing enable real time receiving"); }