### Question:
UInt64 implements UInt64Value<UInt64> { public static UInt64 valueOf(long value) { checkArgument(value >= 0, "Argument must be positive"); return create(value); } private  UInt64(long value); static UInt64 valueOf(long value); static UInt64 random(); static UInt64 valueOf(BigInteger value); static UInt64 fromBytes(Bytes bytes); static UInt64 fromHexString(String str); @Override boolean isZero(); @Override UInt64 add(UInt64 value); @Override UInt64 add(long value); @Override UInt64 addMod(UInt64 value, UInt64 modulus); @Override UInt64 addMod(long value, UInt64 modulus); @Override UInt64 addMod(long value, long modulus); @Override UInt64 subtract(UInt64 value); @Override UInt64 subtract(long value); @Override UInt64 multiply(UInt64 value); @Override UInt64 multiply(long value); @Override UInt64 multiplyMod(UInt64 value, UInt64 modulus); @Override UInt64 multiplyMod(long value, UInt64 modulus); @Override UInt64 multiplyMod(long value, long modulus); @Override UInt64 divide(UInt64 value); @Override UInt64 divide(long value); @Override UInt64 pow(UInt64 exponent); @Override UInt64 pow(long exponent); @Override UInt64 mod(UInt64 modulus); @Override UInt64 mod(long modulus); UInt64 and(UInt64 value); UInt64 and(Bytes bytes); UInt64 or(UInt64 value); UInt64 or(Bytes bytes); UInt64 xor(UInt64 value); UInt64 xor(Bytes bytes); UInt64 not(); UInt64 shiftRight(int distance); UInt64 shiftLeft(int distance); @Override boolean equals(Object object); @Override int hashCode(); @Override int compareTo(UInt64 other); @Override boolean fitsInt(); @Override int intValue(); @Override boolean fitsLong(); @Override long toLong(); @Override String toString(); @Override BigInteger toBigInteger(); @Override UInt64 toUInt64(); @Override Bytes toBytes(); @Override Bytes toMinimalBytes(); @Override int numberOfLeadingZeros(); @Override int bitLength(); final static UInt64 MIN_VALUE; final static UInt64 MAX_VALUE; final static UInt64 ZERO; final static UInt64 ONE; }### Answer:
@Test void valueOfLong() { assertThrows(IllegalArgumentException.class, () -> UInt64.valueOf(-1)); assertThrows(IllegalArgumentException.class, () -> UInt64.valueOf(Long.MIN_VALUE)); assertThrows(IllegalArgumentException.class, () -> UInt64.valueOf(~0L)); }