@Test
    public void post() throws Exception {
        TestSubscriber subscriber = new TestSubscriber();
        try {
            Assert.assertEquals(EventBus.isEnable(TestEvent.class), false);
            EventBus.register(TestEvent.class, subscriber);
            Assert.assertEquals(EventBus.isEnable(TestEvent.class), true);

            EventBus.post(new NullTestEvent());
            EventBus.post(new TestEvent("xxx"));
            Assert.assertEquals(subscriber.getCache(), "xxx");
        } finally {
            EventBus.unRegister(TestEvent.class, subscriber);
        }
        Assert.assertEquals(EventBus.isEnable(TestEvent.class), false);
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/event/EventBusTest.java