### Question:
UInt32 extends Message { public static UInt32 fromJsonObject(JsonObject jsonObject) { int data = jsonObject.containsKey(UInt32.FIELD_DATA) ? Primitive .toUInt32(jsonObject.getJsonNumber(UInt32.FIELD_DATA) .longValue()) : 0; return new UInt32(data); } UInt32();  UInt32(int data); int getData(); @Override UInt32 clone(); static UInt32 fromJsonString(java.lang.String jsonString); static UInt32 fromMessage(Message m); static UInt32 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(UInt32.FIELD_DATA, i1.getData()).build(); UInt32 data = UInt32.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()); }