### Question:
Int8MultiArray extends Message { @Override public Int8MultiArray clone() { return new Int8MultiArray(this.layout, this.data); } Int8MultiArray();  Int8MultiArray(MultiArrayLayout layout, byte[] data); MultiArrayLayout getLayout(); int size(); byte get(int index); byte[] getData(); @Override Int8MultiArray clone(); static Int8MultiArray fromJsonString(java.lang.String jsonString); static Int8MultiArray fromMessage(Message m); static Int8MultiArray 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 testClone() { Int8MultiArray clone = a1.clone(); assertEquals(a1.toString(), clone.toString()); assertEquals(a1.toJsonObject(), clone.toJsonObject()); assertEquals(a1.getMessageType(), clone.getMessageType()); assertTrue(Arrays.equals(a1.getData(), clone.getData())); assertEquals(a1.getLayout(), clone.getLayout()); assertEquals(a1.size(), clone.size()); assertNotSame(a1, clone); assertNotSame(a1.toString(), clone.toString()); assertNotSame(a1.toJsonObject(), clone.toJsonObject()); assertNotSame(a1.getData(), clone.getData()); }