313233343536373839
import java.util.UUID; public class UtilTest { @Test public void testUUIDBytes() throws Exception { for (UUID uuid : Iterables.toIterable(new UUIDGenerator())) { Assert.assertEquals(uuid, Util.bytesToUUID(Util.UUIDToBytes(uuid))); } }