### Question:
RandomGenerator { public static String generateRandomString() { return generateRandomString("SHA-256"); }  static String generateCharsSymbolsString(int lenght); static String generateRandomString(); static String generateShortRandomString(); static String generateDigitsString(int length);  }### Answer:
@Test(enabled = false) public void when_generate_random_string_then_inspect_collisions() { int invocationCount = 10 * 1000 * 1000; HashSet<String> uniqueStrings = new HashSet<String>(); for (int i = 0; i < invocationCount; ++i) { uniqueStrings.add(RandomGenerator.generateRandomString()); } Assert.assertEquals(uniqueStrings.size(), invocationCount); }