@Override
    public int compareTo(Object o) {
      return id.compareTo(((ComparableObject) o).id);
    }
Test class that implements the Comparable interface.
geode-core/src/test/java/org/apache/geode/cache/query/internal/types/TypeUtilsJUnitTest.java