### Question:
Int32 extends Message { public int getData() { return this.data; } Int32();  Int32(int data); int getData(); @Override Int32 clone(); static Int32 fromJsonString(java.lang.String jsonString); static Int32 fromMessage(Message m); static Int32 fromJsonObject(JsonObject jsonObject); static final java.lang.String FIELD_DATA; static final java.lang.String TYPE; }### Answer:
@Test public void testConstructor() { assertEquals(0, empty.getData()); assertEquals("{\"data\":0}", empty.toString()); assertEquals(1, empty.toJsonObject().size()); assertEquals(0, empty.toJsonObject().getInt(Int32.FIELD_DATA)); assertEquals(Int32.TYPE, empty.getMessageType()); }
@Test public void testIntConstructor() { assertEquals(127, i1.getData()); assertEquals("{\"data\":127}", i1.toString()); assertEquals(1, i1.toJsonObject().size()); assertEquals(127, i1.toJsonObject().getInt(Int32.FIELD_DATA)); assertEquals(Int32.TYPE, i1.getMessageType()); }