### Question:
TransformStamped extends Message { public static TransformStamped fromMessage(Message m) { return TransformStamped.fromJsonObject(m.toJsonObject()); } TransformStamped();  TransformStamped(Header header, String childFrameID,
			Transform transform); Header getHeader(); String getChildFrameID(); Transform getTransform(); @Override TransformStamped clone(); static TransformStamped fromJsonString(String jsonString); static TransformStamped fromMessage(Message m); static TransformStamped fromJsonObject(JsonObject jsonObject); static final String FIELD_HEADER; static final String FIELD_CHILD_FRAME_ID; static final String FIELD_TRANSFORM; static final String TYPE; }### Answer:
@Test public void testFromMessage() { Message m = new Message(t1.toString()); TransformStamped p = TransformStamped.fromMessage(m); 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()); }