ValueGenerators { public static String generateRandomHex(int nibbleLength) { return ByteUtils.toHexString(generateRandom(nibbleLength)); }  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 testGenerateRandomHex() { String randomHex = ValueGenerators.generateRandomHex(40); assertEquals(randomHex.length(), 40); }