### Question:
Primitive extends JsonWrapper { public static BigInteger fromUInt64(long value) { return BigInteger.valueOf(value).and( BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE)); } Primitive(String jsonString, String primitiveType);  Primitive(JsonObject jsonObject, String primitiveType); String getPrimitiveType(); void setPrimitiveType(String primitiveType); static byte toUInt8(short value); static byte[] toUInt8(short[] values); static short fromUInt8(byte value); static short[] fromUInt8(byte[] values); static short toUInt16(int value); static short[] toUInt16(int[] values); static int fromUInt16(short value); static int[] fromUInt16(short[] values); static int toUInt32(long value); static int[] toUInt32(long[] values); static long fromUInt32(int value); static long[] fromUInt32(int[] values); static long toUInt64(BigInteger value); static long[] toUInt64(BigInteger[] values); static BigInteger fromUInt64(long value); static BigInteger[] fromUInt64(long[] values); static final String EMPTY_MESSAGE; }### Answer:
@Test public void testFromUInt64() { assertEquals(BigInteger.valueOf(0l), Primitive.fromUInt64(0l)); assertEquals(BigInteger.valueOf(5l), Primitive.fromUInt64(5l)); assertEquals(BigInteger.valueOf(10l), Primitive.fromUInt64(10l)); assertEquals(BigInteger.valueOf(15l), Primitive.fromUInt64(15l)); assertEquals(new BigInteger("18446744073709551615"), Primitive.fromUInt64(-1l)); }
@Test public void testFromUInt64Array() { BigInteger[] values = Primitive.fromUInt64(new long[] { 0l, 5l, 10l, 15l, -1l }); assertEquals(BigInteger.valueOf(0l), values[0]); assertEquals(BigInteger.valueOf(5l), values[1]); assertEquals(BigInteger.valueOf(10l), values[2]); assertEquals(BigInteger.valueOf(15l), values[3]); assertEquals(new BigInteger("18446744073709551615"), values[4]); }