nameUUIDFromBytes is not a straightfoward conversion of an UUID in byte array representation to the same UUID in the UUID class. Rather, it generates an UUID from an array of byte by some black magic involving md5 hashing...
Adding proper tests for integrity checks is left as an exercise for the reader :)