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