EventSubscription { public EventSubscriber getSubscriber() { return subscriber; } EventSubscription(final String eventType,
            final EventSubscriber eventSubscriber); String getType(); boolean matches(final String eventType); EventSubscriber getSubscriber(); void publish(final JVoiceXMLEvent event); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void testGetSubscriber() { final String type = "test.dummy.event"; final EventSubscriber subscriber = new MockEventSubscriber(); final EventSubscription subscription = new EventSubscription(type, subscriber); Assert.assertEquals(subscriber, subscription.getSubscriber()); }