### Question:
Int8 extends Message { public byte getData() { return this.data; } Int8();  Int8(byte data); byte getData(); @Override Int8 clone(); static Int8 fromJsonString(java.lang.String jsonString); static Int8 fromMessage(Message m); static Int8 fromJsonObject(JsonObject jsonObject); static final java.lang.String FIELD_DATA; static final java.lang.String TYPE; }### Answer:
@Test public void testConstructor() { assertEquals((byte) 0, empty.getData()); assertEquals("{\"data\":0}", empty.toString()); assertEquals(1, empty.toJsonObject().size()); assertEquals(0, empty.toJsonObject().getInt(Int8.FIELD_DATA)); assertEquals(Int8.TYPE, empty.getMessageType()); }
@Test public void testByteConstructor() { assertEquals((byte) 127, i1.getData()); assertEquals("{\"data\":127}", i1.toString()); assertEquals(1, i1.toJsonObject().size()); assertEquals(127, i1.toJsonObject().getInt(Int8.FIELD_DATA)); assertEquals(Int8.TYPE, i1.getMessageType()); }