### Question:
PolygonStamped extends Message { @Override public PolygonStamped clone() { return new PolygonStamped(this.header, this.polygon); } PolygonStamped();  PolygonStamped(Header header, Polygon polygon); Header getHeader(); Polygon getPolygon(); @Override PolygonStamped clone(); static PolygonStamped fromJsonString(String jsonString); static PolygonStamped fromMessage(Message m); static PolygonStamped fromJsonObject(JsonObject jsonObject); static final String FIELD_HEADER; static final String FIELD_POLYGON; static final String TYPE; }### Answer:
@Test public void testClone() { PolygonStamped 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.getPolygon(), clone.getPolygon()); assertNotSame(p1, clone); assertNotSame(p1.toString(), clone.toString()); assertNotSame(p1.toJsonObject(), clone.toJsonObject()); }