### Question:
UInt64 extends Message { public long getData() { return this.data; } UInt64();  UInt64(long data); long getData(); @Override UInt64 clone(); static UInt64 fromJsonString(java.lang.String jsonString); static UInt64 fromMessage(Message m); static UInt64 fromJsonObject(JsonObject jsonObject); static final java.lang.String FIELD_DATA; static final java.lang.String TYPE; }### Answer:
@Test public void testConstructor() { assertEquals(0L, empty.getData()); assertEquals("{\"data\":0}", empty.toString()); assertEquals(1, empty.toJsonObject().size()); assertEquals( 0L, Primitive.toUInt64(empty.toJsonObject() .getJsonNumber(UInt64.FIELD_DATA).bigIntegerValue())); assertEquals(UInt64.TYPE, empty.getMessageType()); }
@Test public void testByteConstructor() { assertEquals(123L, i1.getData()); assertEquals("{\"data\":123}", i1.toString()); assertEquals(1, i1.toJsonObject().size()); assertEquals( 123L, Primitive.toUInt64(i1.toJsonObject() .getJsonNumber(UInt64.FIELD_DATA).bigIntegerValue())); assertEquals(UInt64.TYPE, i1.getMessageType()); }
@Test public void testByteConstructorNegative() { UInt64 c = new UInt64(-1L); assertEquals(-1L, c.getData()); assertEquals("{\"data\":18446744073709551615}", c.toString()); assertEquals(1, c.toJsonObject().size()); assertEquals( -1L, Primitive.toUInt64(c.toJsonObject() .getJsonNumber(UInt64.FIELD_DATA).bigIntegerValue())); assertEquals(UInt64.TYPE, c.getMessageType()); }