ValueGenerators { public static String genBase64Session() { return genBase64Session(32); }  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 testGenBase64Session() { String session = ValueGenerators.genBase64Session(); assertEquals(session.length(), 22); session = ValueGenerators.genBase64Session(64); assertEquals(session.length(), 43); }