public static synchronized int getLatestId() {
    return latestId;
  }
Method public for test reasons

@return the latest identity
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/IdentityRequestMessage.java