### Question:
IdGenerator { public static String generateRandomId() { UUID uuid = UUID.randomUUID(); return generateIdUsingHash(uuid.toString()); }  static String generateRandomId(); static String generateIdUsingHash(final String value);  }### Answer:
@Test void randomIdHasLength8() { assertEquals(8, IdGenerator.generateRandomId().length()); }
@Test void randomValuesAreAlwaysDifferent() { String first = IdGenerator.generateRandomId(); String second = IdGenerator.generateRandomId(); assertNotEquals(first, second); }