### Question:
Char extends Message { public byte getData() { return this.data; } Char();  Char(byte data); byte getData(); @Override Char clone(); static Char fromJsonString(java.lang.String jsonString); static Char fromMessage(Message m); static Char 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( (byte) 0, Primitive.toUInt8((short) empty.toJsonObject().getInt( Char.FIELD_DATA))); assertEquals(Char.TYPE, empty.getMessageType()); }
@Test public void testByteConstructor() { assertEquals((byte) 123, c1.getData()); assertEquals("{\"data\":123}", c1.toString()); assertEquals(1, c1.toJsonObject().size()); assertEquals( (byte) 123, Primitive.toUInt8((short) c1.toJsonObject().getInt( Char.FIELD_DATA))); assertEquals(Char.TYPE, c1.getMessageType()); }
@Test public void testByteConstructorNegative() { Char c = new Char((byte) -1); assertEquals((byte) -1, c.getData()); assertEquals("{\"data\":255}", c.toString()); assertEquals(1, c.toJsonObject().size()); assertEquals( (byte) -1, Primitive.toUInt8((short) c.toJsonObject().getInt( Char.FIELD_DATA))); assertEquals(Char.TYPE, c.getMessageType()); }