// Test improved algorithm.
assertEquals(TimeUUIDUtils.getTimeUUID(time),
java.util.UUID.fromString(
new com.eaio.uuid.UUID(UUIDGen.createTime(time), UUIDGen.getClockSeqAndNode()).toString()));
clock = new MicrosecondsSyncClockResolution();
// Invoke twice with a clockResolution that guarantees unique timestamp. The second must be greater
// than the first one.
java.util.UUID first = TimeUUIDUtils.getTimeUUID(clock);
java.util.UUID second = TimeUUIDUtils.getTimeUUID(clock);
assertTrue(second.compareTo(first) > 0);