private Long getCurrentNotificationId(){
    CurrentNotificationEventId cid = null;
    try {
      cid = metaStoreClient.getCurrentNotificationEventId();
      Long l = cid.getEventId();
      return (l == null)? 0L : l;
    } catch (TException e) {
      throw new RuntimeException(e);
    }
  }
Utility class to enable testing of Replv1 compatibility testing.

If event formats/etc change in the future, testing against this allows tests
to determine if they break backward compatibility with Replv1.

Use as a junit TestRule on tests that generate events to test if the events
generated are compatible with replv1.
hcatalog/webhcat/java-client/src/test/java/org/apache/hive/hcatalog/api/repl/ReplicationV1CompatRule.java