### Question:
MultiArrayDimension extends Message { public static MultiArrayDimension fromJsonObject(JsonObject jsonObject) { java.lang.String label = jsonObject .containsKey(MultiArrayDimension.FIELD_LABEL) ? jsonObject .getString(MultiArrayDimension.FIELD_LABEL) : ""; long size64 = jsonObject.containsKey(MultiArrayDimension.FIELD_SIZE) ? jsonObject .getJsonNumber(MultiArrayDimension.FIELD_SIZE).longValue() : 0L; long stride64 = jsonObject .containsKey(MultiArrayDimension.FIELD_STRIDE) ? jsonObject .getJsonNumber(MultiArrayDimension.FIELD_STRIDE).longValue() : 0L; int size32 = Primitive.toUInt32(size64); int stride32 = Primitive.toUInt32(stride64); return new MultiArrayDimension(label, size32, stride32); } 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 testFromJsonObject() { JsonObject jsonObject = Json.createObjectBuilder() .add(MultiArrayDimension.FIELD_LABEL, mad1.getLabel()) .add(MultiArrayDimension.FIELD_SIZE, mad1.getSize()) .add(MultiArrayDimension.FIELD_STRIDE, mad1.getStride()) .build(); MultiArrayDimension p = MultiArrayDimension.fromJsonObject(jsonObject); assertEquals(mad1.toString(), p.toString()); assertEquals(mad1.toJsonObject(), p.toJsonObject()); assertEquals(mad1.getMessageType(), p.getMessageType()); assertEquals(mad1.getLabel(), p.getLabel()); assertEquals(mad1.getSize(), p.getSize()); assertEquals(mad1.getStride(), p.getStride()); assertNotSame(mad1, p); assertNotSame(mad1.toString(), p.toString()); assertNotSame(mad1.toJsonObject(), p.toJsonObject()); }