### Question:
PoseWithCovarianceStamped extends Message { @Override public PoseWithCovarianceStamped clone() { return new PoseWithCovarianceStamped(this.header, this.pose); } PoseWithCovarianceStamped();  PoseWithCovarianceStamped(Header header, PoseWithCovariance pose); Header getHeader(); PoseWithCovariance getPose(); @Override PoseWithCovarianceStamped clone(); static PoseWithCovarianceStamped fromJsonString(String jsonString); static PoseWithCovarianceStamped fromMessage(Message m); static PoseWithCovarianceStamped fromJsonObject(JsonObject jsonObject); static final String FIELD_HEADER; static final String FIELD_POSE; static final String TYPE; }### Answer:
@Test public void testClone() { PoseWithCovarianceStamped 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()); }