    @Test
    public void testRegister() {

        Subscriber subscriber = new Subscriber();
        eventBus.register(subscriber);
        Event e1 = new Event();
        eventBus.post(e1);
        Event e2 = new Event();
        eventBus.post(e2);
        assertEquals(asList(e1, e2), subscriber.events);
    }