### Question:
Char extends Message { public static Char fromJsonObject(JsonObject jsonObject) { short data16 = jsonObject.containsKey(Char.FIELD_DATA) ? (short) jsonObject .getInt(Char.FIELD_DATA) : 0; byte data8 = Primitive.toUInt8(data16); return new Char(data8); } 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 testFromJsonObject() { JsonObject jsonObject = Json.createObjectBuilder() .add(Char.FIELD_DATA, c1.getData()).build(); Char data = Char.fromJsonObject(jsonObject); assertEquals(c1.toString(), data.toString()); assertEquals(c1.toJsonObject(), data.toJsonObject()); assertEquals(c1.getMessageType(), data.getMessageType()); assertEquals(c1.getData(), data.getData()); assertNotSame(c1, data); assertNotSame(c1.toString(), data.toString()); assertNotSame(c1.toJsonObject(), data.toJsonObject()); }