It can also be useful to demonstrate what to expect from getLeastSignificantBits() :
public void test_getLeastSignificantBits() { UUID uuid = new UUID(0, 0); assertEquals(0, uuid.getLeastSignificantBits()); uuid = new UUID(0, Long.MIN_VALUE); assertEquals(Long.MIN_VALUE, uuid.getLeastSignificantBits()); uuid = new UUID(0, Long.MAX_VALUE); assertEquals(Long.MAX_VALUE, uuid.getLeastSignificantBits()); }
a source
source share