### Question:
MultiArrayDimension extends Message { @Override public MultiArrayDimension clone() { return new MultiArrayDimension(this.label, this.size, this.stride); } MultiArrayDimension();  MultiArrayDimension(java.lang.String label, int size, int stride); java.lang.String getLabel(); int getSize(); int getStride(); @Override MultiArrayDimension clone(); static MultiArrayDimension fromJsonString(java.lang.String jsonString); static MultiArrayDimension fromMessage(Message m); static MultiArrayDimension fromJsonObject(JsonObject jsonObject); static final java.lang.String FIELD_LABEL; static final java.lang.String FIELD_SIZE; static final java.lang.String FIELD_STRIDE; static final java.lang.String TYPE; }### Answer:
@Test public void testClone() { MultiArrayDimension clone = mad1.clone(); assertEquals(mad1.toString(), clone.toString()); assertEquals(mad1.toJsonObject(), clone.toJsonObject()); assertEquals(mad1.getMessageType(), clone.getMessageType()); assertEquals(mad1.getLabel(), clone.getLabel()); assertEquals(mad1.getSize(), clone.getSize()); assertEquals(mad1.getStride(), clone.getStride()); assertNotSame(mad1, clone); assertNotSame(mad1.toString(), clone.toString()); assertNotSame(mad1.toJsonObject(), clone.toJsonObject()); }