@Test
public void testPublish() {

    final MockEventSubscriber subscriber = new MockEventSubscriber();
    final EventBus bus = new EventBus();
    final String type = BadFetchError.EVENT_TYPE;
    bus.subscribe(type, subscriber);
    final JVoiceXMLEvent event = new BadFetchError("test message");
    bus.publish(event);
    Assert.assertEquals(event, subscriber.getEvent());
}