### Question:
UUID { UUID(java.util.UUID uuid) { this(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits()); } UUID(java.util.UUID uuid);  UUID(long mostSigBits, long leastSigBits); static UUID randomUUID(); long getLeastSignificantBits(); long getMostSignificantBits(); @Override int hashCode(); @Override boolean equals(Object obj); static UUID fromString(String value); @Override String toString();  }### Answer:
@Test public void testUUID() throws Exception { java.util.UUID uuid = java.util.UUID.randomUUID(); UUID uuid1 = new UUID(uuid); UUID uuid2 = new UUID(uuid); Assert.assertEquals(uuid1, uuid2); String s1 = uuid1.toString(); UUID uuid3 = UUID.fromString(s1); Assert.assertEquals(uuid1, uuid3); }