### Question:
Char extends Message { public static Char fromMessage(Message m) { return Char.fromJsonObject(m.toJsonObject()); } 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 testFromMessage() { Message m = new Message(c1.toString()); Char data = Char.fromMessage(m); 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()); }