public void testManyUUIDs() throws Exception
{
final int MANY_TIMES = getTimes();
Set<String> uuidsSet = new HashSet<String>();
UUIDGenerator gen = UUIDGenerator.getInstance();
for (int i = 0; i < MANY_TIMES; i++)
{
uuidsSet.add(gen.generateStringUUID());
}
// we put them in a set to check duplicates
Assert.assertEquals(MANY_TIMES, uuidsSet.size());
}