### Question:
LegacyUUID implements Comparable<LegacyUUID>, Bson { public static LegacyUUID fromString(String value) { return new LegacyUUID(UUID.fromString(value)); } LegacyUUID(UUID uuid);  LegacyUUID(long mostSigBits, long leastSigBits); UUID getUuid(); static LegacyUUID fromString(String value); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(LegacyUUID o);  }### Answer:
@Test void testCompare() throws Exception { UUID uuid0 = UUID.fromString("00000000-0000-0000-0000-000000000000"); UUID uuid1 = UUID.fromString("48fe9251-9502-4d43-bd81-b8861eb69dc5"); UUID uuid2 = UUID.fromString("cb6bdaa5-d134-4244-9383-ccded62a7bb3"); UUID uuid3 = UUID.fromString("ffffffff-ffff-ffff-ffff-ffffffffffff"); assertComparesLessThan(uuid0, uuid1); assertComparesLessThan(uuid2, uuid0); assertComparesLessThan(uuid2, uuid1); assertComparesLessThan(uuid2, uuid3); assertComparesLessThan(uuid3, uuid0); }