@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());
}