### Question:
Pose extends Message { public static Pose fromMessage(Message m) { return Pose.fromJsonObject(m.toJsonObject()); } Pose();  Pose(Point position, Quaternion orientation); Point getPosition(); Quaternion getOrientation(); @Override Pose clone(); static Pose fromJsonString(String jsonString); static Pose fromMessage(Message m); static Pose fromJsonObject(JsonObject jsonObject); static final String FIELD_POSITION; static final String FIELD_ORIENTATION; static final String TYPE; }### Answer:
@Test public void testFromMessage() { Message m = new Message(p1.toString()); Pose p = Pose.fromMessage(m); assertEquals(p1.toString(), p.toString()); assertEquals(p1.toJsonObject(), p.toJsonObject()); assertEquals(p1.getMessageType(), p.getMessageType()); assertEquals(p1.getPosition(), p.getPosition()); assertEquals(p1.getOrientation(), p.getOrientation()); assertNotSame(p1, p); assertNotSame(p1.toString(), p.toString()); assertNotSame(p1.toJsonObject(), p.toJsonObject()); }