@Test
public void testFromJsonObject() {

	JsonObject jsonObject = Json
			.createObjectBuilder()
			.add(TransformStamped.FIELD_HEADER,
					t1.getHeader().toJsonObject())
			.add(TransformStamped.FIELD_CHILD_FRAME_ID,
					t1.getChildFrameID())
			.add(TransformStamped.FIELD_TRANSFORM,
					t1.getTransform().toJsonObject()).build();
	TransformStamped p = TransformStamped.fromJsonObject(jsonObject);
	assertEquals(t1.toString(), p.toString());
	assertEquals(t1.toJsonObject(), p.toJsonObject());
	assertEquals(t1.getMessageType(), p.getMessageType());
	assertEquals(t1.getHeader(), p.getHeader());
	assertEquals(t1.getChildFrameID(), p.getChildFrameID());
	assertEquals(t1.getTransform(), p.getTransform());
	assertNotSame(t1, p);
	assertNotSame(t1.toString(), p.toString());
	assertNotSame(t1.toJsonObject(), p.toJsonObject());
}