@Test
public void testGenerateRandomUuidNonConstant() throws Exception {

    final int numValues = 1000;
    final Set<UUID> values = new HashSet<>();
    final ConcurrentUUIDFactory factory = new ConcurrentUUIDFactory();
    for (int i = 0; i < numValues; ++i) {
        final UUID newUuid = factory.generateRandomUuid();
        Assert.assertTrue("Already generated UUID with value: " + newUuid, values.add(newUuid));
    }
    Assert.assertEquals(numValues, values.size());
}