EventBus { public static boolean isEnable() { return EVENT_BUS_ENABLE; }  static boolean isEnable(); static boolean isEnable(Class<? extends Event> eventClass); static void register(Class<? extends Event> eventClass, Subscriber subscriber); static void unRegister(Class<? extends Event> eventClass, Subscriber subscriber); static void post(final Event event);  }
@Test public void isEnable() throws Exception { Assert.assertEquals(EventBus.isEnable(), RpcConfigs.getBooleanValue(RpcOptions.EVENT_BUS_ENABLE)); }
@Test public void isEnable1() throws Exception { Assert.assertEquals(EventBus.isEnable(NullTestEvent.class), false); }