### Question:
UInt64 extends Message { public static UInt64 fromMessage(Message m) { return UInt64.fromJsonObject(m.toJsonObject()); } UInt64();  UInt64(long data); long getData(); @Override UInt64 clone(); static UInt64 fromJsonString(java.lang.String jsonString); static UInt64 fromMessage(Message m); static UInt64 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(i1.toString()); UInt64 data = UInt64.fromMessage(m); 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()); }