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