Listener { public long getLastEventId() { return lastEventId; } Listener(String tableName);  Listener(String tableName, int waitTimeout);  Listener(long id, String tableName, int waitTimeout, Date lastCheck, long lastEventId); long getId(); String getTableName(); long getWaitTimeout(); Date getLastCheck(); long getLastEventId(); void setLastCheck(Date lastCheck); void setLastEventId(long lastEventId);  }
@Test(groups = SMALL) public void testByDefaultLastFetchedIdIsInitializedToZero() { Listener listener = new Listener("table"); assertEquals(listener.getLastEventId(), 0l); }