ValueGenerators { public static String generateUUID() { String uuid = UUID.randomUUID().toString(); return "urn:uuid:" + uuid; }  static String generatePSK(); static String generatePSK(int nibbleLength); static String genBase64Session(); static String genBase64Session(int nibbleLength); static String genHexSession(); static String genHexSession(int nibbleLength); @Deprecated static String generateSessionID(); @Deprecated static String generateSessionID(int nibbleLength); static String generateUUID(); static String generateRandomHex(int nibbleLength); static byte[] generateRandom(int nibbleLength);  }
@Test public void testGenerateUUID() { String uuid = ValueGenerators.generateUUID(); assertTrue(uuid.startsWith("urn:uuid:")); assertEquals(uuid.length(), 45); }