@Test
public void testPublish() {

    final String type = "test.dummy.event";
    final MockEventSubscriber subscriber = new MockEventSubscriber();
    final EventSubscription subscription =
            new EventSubscription(type, subscriber);
    final JVoiceXMLEvent event = new ConnectionDisconnectHangupEvent();
    subscription.publish(event);
    Assert.assertEquals(event, subscriber.getEvent());
    Assert.assertEquals(subscriber, subscription.getSubscriber());
}