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