public void testUID() throws InterruptedException
{
HashSet repositoryIDs = new HashSet();
System.out.println();
System.out.println("---------------------- testProveUIDHashCodeIsSame");
UID guid = null;
for (int i = 0; i < ITERATIONS; i++)
{
guid = new UID();
Integer hashKey = new Integer(guid.hashCode());
if (!repositoryIDs.contains(hashKey))
{
repositoryIDs.add(hashKey);
}
System.out.println("guid.hashCode()=" + guid.hashCode());
}
if (repositoryIDs.size()==1)
{
fail("HashCode is always returning the same hash");