EventSourceTopic implements DataTreeChangeListener<Node>, AutoCloseable { public TopicId getTopicId() { return topicId; } private  EventSourceTopic(final NotificationPattern notificationPattern, final String nodeIdRegexPattern,
            final EventSourceService sourceService); static EventSourceTopic create(final NotificationPattern notificationPattern,
            final String nodeIdRegexPattern, final EventSourceTopology eventSourceTopology); TopicId getTopicId(); @Override void onDataTreeChanged(final Collection<DataTreeModification<Node>> changes); void notifyNode(final InstanceIdentifier<?> nodeId); Pattern getNodeIdRegexPattern(); @Override void close();  }
@Test public void getTopicIdTest() { assertNotNull("Topic has not been created correctly.", eventSourceTopic.getTopicId()); }