### Question:
DefaultEventBus implements EventBus { @Override public boolean isEnable() { return null != config && config.isEventBusEnable(); } DefaultEventBus(RegistryClientConfig config); @Override void register(Class<? extends Event> eventClass, EventSubscriber eventSubscriber); @Override void unRegister(Class<? extends Event> eventClass, EventSubscriber eventSubscriber); @Override void post(final Event event); @Override boolean isEnable(); @Override boolean isEnable(Class<? extends Event> eventClass);  }### Answer:
@Test public void isEnable0() { RegistryClientConfig config = DefaultRegistryClientConfigBuilder.start() .setEventBusEnable(false).build(); eventBus = new DefaultEventBus(config); assertFalse(eventBus.isEnable()); }
@Test public void isEnable1() { RegistryClientConfig config = DefaultRegistryClientConfigBuilder.start() .setEventBusEnable(true).build(); eventBus = new DefaultEventBus(config); assertTrue(eventBus.isEnable()); }