### Question:
Int64 extends Message { public long getData() { return this.data; } Int64();  Int64(long data); long getData(); @Override Int64 clone(); static Int64 fromJsonString(java.lang.String jsonString); static Int64 fromMessage(Message m); static Int64 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, empty.toJsonObject().getJsonNumber(Int64.FIELD_DATA) .longValue()); assertEquals(Int64.TYPE, empty.getMessageType()); }
@Test public void testLongConstructor() { assertEquals(127L, i1.getData()); assertEquals("{\"data\":127}", i1.toString()); assertEquals(1, i1.toJsonObject().size()); assertEquals(127L, i1.toJsonObject().getJsonNumber(Int64.FIELD_DATA) .longValue()); assertEquals(Int64.TYPE, i1.getMessageType()); }