### Question:
IDGenerator { public static String newCeptaID() { return String.format("CPTA-%s", UUID.randomUUID().toString()); }  static String newCeptaID();  }### Answer:
@Test public void testGeneratesUniqueIds() { List<String> ids = Arrays.asList(new String[1000]).parallelStream().map(i -> IDGenerator.newCeptaID()) .collect(Collectors.toList()); Assert.assertFalse(hasDuplicates(ids)); }