// Path: src/main/java/org/nextrtc/signalingserver/api/NextRTCEventBus.java
// @Slf4j
// @Service(Names.EVENT_BUS)
// @Scope("singleton")
// public class NextRTCEventBus {
//     private EventBus eventBus;
// 
//     public NextRTCEventBus() {
//         this.eventBus = new EventBus();
//     }
// 
//     public void post(NextRTCEvent event) {
//         if (event.type() != NextRTCEvents.MESSAGE) {
//             log.info("POSTED EVENT: " + event);
//         }
//         eventBus.post(event);
//     }
// 
//     @Deprecated
//     public void post(Object o) {
//         eventBus.post(o);
//     }
// 
//     public void register(Object listeners) {
//         log.info("REGISTERED LISTENER: " + listeners);
//         eventBus.register(listeners);
//     }
// 
// }


import org.mockito.Answers;
import org.mockito.Mockito;
import org.nextrtc.signalingserver.api.NextRTCEventBus;
import org.springframework.context.annotation.*;
import java.util.concurrent.ScheduledExecutorService;
package org.nextrtc.signalingserver;



@Configuration
@ComponentScan(basePackages = "org.nextrtc.signalingserver")
@PropertySource("classpath:nextrtc.properties")
public class TestConfig {

    @Primary
// Path: src/main/java/org/nextrtc/signalingserver/api/NextRTCEventBus.java
// @Slf4j
// @Service(Names.EVENT_BUS)
// @Scope("singleton")
// public class NextRTCEventBus {
//     private EventBus eventBus;
// 
//     public NextRTCEventBus() {
//         this.eventBus = new EventBus();
//     }
// 
//     public void post(NextRTCEvent event) {
//         if (event.type() != NextRTCEvents.MESSAGE) {
//             log.info("POSTED EVENT: " + event);
//         }
//         eventBus.post(event);
//     }
// 
//     @Deprecated
//     public void post(Object o) {
//         eventBus.post(o);
//     }
// 
//     public void register(Object listeners) {
//         log.info("REGISTERED LISTENER: " + listeners);
//         eventBus.register(listeners);
//     }
// 
// }


// Path: src/test/java/org/nextrtc/signalingserver/TestConfig.java
import org.mockito.Answers;
import org.mockito.Mockito;
import org.nextrtc.signalingserver.api.NextRTCEventBus;
import org.springframework.context.annotation.*;
import java.util.concurrent.ScheduledExecutorService;

package org.nextrtc.signalingserver;



@Configuration
@ComponentScan(basePackages = "org.nextrtc.signalingserver")
@PropertySource("classpath:nextrtc.properties")
public class TestConfig {

    @Primary
    @Bean(name = Names.EVENT_BUS)