### Question:
UInt64MultiArray extends Message { public static UInt64MultiArray fromMessage(Message m) { return UInt64MultiArray.fromJsonObject(m.toJsonObject()); } UInt64MultiArray();  UInt64MultiArray(MultiArrayLayout layout, long[] data); MultiArrayLayout getLayout(); int size(); long get(int index); long[] getData(); @Override UInt64MultiArray clone(); static UInt64MultiArray fromJsonString(java.lang.String jsonString); static UInt64MultiArray fromMessage(Message m); static UInt64MultiArray fromJsonObject(JsonObject jsonObject); static final java.lang.String FIELD_LAYOUT; static final java.lang.String FIELD_DATA; static final java.lang.String TYPE; }### Answer:
@Test public void testFromMessage() { Message m = new Message(a1.toString()); UInt64MultiArray p = UInt64MultiArray.fromMessage(m); assertEquals(a1.toString(), p.toString()); assertEquals(a1.toJsonObject(), p.toJsonObject()); assertEquals(a1.getMessageType(), p.getMessageType()); assertEquals(a1.size(), p.size()); assertTrue(Arrays.equals(a1.getData(), p.getData())); assertEquals(a1.getLayout(), p.getLayout()); assertNotSame(a1, p); assertNotSame(a1.toString(), p.toString()); assertNotSame(a1.toJsonObject(), p.toJsonObject()); }