StringUtilities { public static String generateRandom() { return generateRandom(DEFAULT_RANDOM_STRING_LENGTH); } private  StringUtilities(); static String generateRandom(); static String generateRandom(final int length); static String urlEncode(final String text); static String urlDecode(final String text); static boolean isEmpty(final String value);  }
@Test public void shouldGenerateTwoDifferentRandomStrings() { String s1 = StringUtilities.generateRandom(); String s2 = StringUtilities.generateRandom(); assertThat(s1.length(), is(32)); assertThat(s2.length(), is(32)); assertThat(s1, is(not(s2))); }