UUIDType expectedType)
{
// let's check that all the UUIDs are valid type-X UUIDs with the
// correct variant according to the specification.
for (int i = 0; i < uuidArray.length; i++) {
UUIDType actual = UUIDUtil.typeOf(uuidArray[i]);
if (actual != expectedType) {
fail("Expected version (type) did not match for UUID '"+uuidArray[i]+"' "+i+" (of "+uuidArray.length+"); expected "
+expectedType+", got "+actual);
}
// now. let's double check the variant and type from the array