### Question:
PoseStamped extends Message { @Override public PoseStamped clone() { return new PoseStamped(this.header, this.pose); } PoseStamped();  PoseStamped(Header header, Pose pose); Header getHeader(); Pose getPose(); @Override PoseStamped clone(); static PoseStamped fromJsonString(String jsonString); static PoseStamped fromMessage(Message m); static PoseStamped fromJsonObject(JsonObject jsonObject); static final String FIELD_HEADER; static final String FIELD_POSE; static final String TYPE; }### Answer:
@Test public void testClone() { PoseStamped clone = p1.clone(); assertEquals(p1.toString(), clone.toString()); assertEquals(p1.toJsonObject(), clone.toJsonObject()); assertEquals(p1.getMessageType(), clone.getMessageType()); assertEquals(p1.getHeader(), clone.getHeader()); assertEquals(p1.getPose(), clone.getPose()); assertNotSame(p1, clone); assertNotSame(p1.toString(), clone.toString()); assertNotSame(p1.toJsonObject(), clone.toJsonObject()); }