@Test void testRandomBase64() { long iter = 10000; RandomString randomString = new RandomString(); while (iter-->0) { String base64 = randomString.randomBase64(10); try { Base64.decodeToString(base64); } catch (Exception e) { fail(e.getMessage()); } } } }